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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user