Skip to content

Commit

Permalink
MDL-77986 backup: trim extra white spaces on search forms
Browse files Browse the repository at this point in the history
  • Loading branch information
jboulen committed May 17, 2023
1 parent 063ffc8 commit 5a6ea11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backup/util/ui/restore_ui_components.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5a6ea11

Please sign in to comment.