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.
This commit is contained in:
Sun Zhigang
2011-07-07 09:27:48 +08:00
parent 020f0ffc5b
commit 534eebdd35
+1 -1
View File
@@ -72,7 +72,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_ALPHANUMEXT);
$this->search = optional_param($this->get_varsearch(), self::DEFAULT_SEARCH, PARAM_NOTAGS);
foreach ($config as $name=>$value) {
$method = 'set_'.$name;