MDL-77986 backup: trim extra white spaces on search forms
This commit is contained in:
committed by
Sara Arjona
parent
470d53ca58
commit
4e4264c058
@@ -85,6 +85,7 @@ abstract class restore_search_base implements renderable {
|
||||
public function __construct(array $config = array()) {
|
||||
|
||||
$this->search = optional_param($this->get_varsearch(), self::DEFAULT_SEARCH, PARAM_NOTAGS);
|
||||
$this->search = trim($this->search);
|
||||
$this->maxresults = get_config('backup', 'import_general_maxresults');
|
||||
|
||||
foreach ($config as $name => $value) {
|
||||
|
||||
Reference in New Issue
Block a user