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 020f0ff commit 534eebdd355785d6669bb19c2e08eefb299fe2e0 @sunner sunner committed 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 534eebd

Please sign in to comment.