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 10:39:24 +02:00
committed by Eloy Lafuente (stronk7)
parent 2fa78e85e9
commit fbe00fbec7
+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;