mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Fixes from Mits for bug 3101 to fix multi-byte search results
This commit is contained in:
parent
524f9dbe72
commit
5eecb8cb57
2 changed files with 3 additions and 2 deletions
|
@ -29,7 +29,7 @@ class search_token {
|
|||
// Need to think about this some more.
|
||||
|
||||
function sanitize($userstring){
|
||||
return htmlentities(addslashes($userstring));
|
||||
return htmlspecialchars(addslashes($userstring));
|
||||
}
|
||||
function getValue(){
|
||||
return $this->value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue