Permalink
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 2fa78e8 commit fbe00fbec7ad4830a094577fcbb521a9ea844655 @sunner sunner committed with stronk7 Jun 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 fbe00fb

Please sign in to comment.