mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-77986 backup: trim extra white spaces on search forms
This commit is contained in:
parent
063ffc8073
commit
5a6ea11dda
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user