Skip to content
Browse files

MDL-27833 Backup - Fix can't search courses with non-latin characters…

… during importing

PARAM_ALPHANUMEXT filter out all non-latin characters, including
Chinese, Japanese and etc. Use PARAM_NOTAGS instead.
  • Loading branch information...
1 parent 26635fd commit 858d100fa3bb864c01cc0270607d8e94a0c93ebf @sunner sunner committed with stronk7
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/util/ui/restore_ui_components.php
View
2 backup/util/ui/restore_ui_components.php
@@ -72,7 +72,7 @@
*/
public function __construct(array $config=array()) {
- $this->search = optional_param($this->get_varsearch(), self::DEFAULT_SEARCH, PARAM_ALPHANUMEXT);
+ $this->search = optional_param($this->get_varsearch(), self::DEFAULT_SEARCH, PARAM_NOTAGS);
foreach ($config as $name=>$value) {
$method = 'set_'.$name;

0 comments on commit 858d100

Please sign in to comment.
Something went wrong with that request. Please try again.