mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 23:59:41 +02:00
MDL-24058 removing obsolte stripslashes
This commit is contained in:
parent
798b0b331b
commit
00521032e9
1 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@
|
||||||
$page_number = optional_param('page', -1, PARAM_INT);
|
$page_number = optional_param('page', -1, PARAM_INT);
|
||||||
$pages = ($page_number == -1) ? false : true;
|
$pages = ($page_number == -1) ? false : true;
|
||||||
$advanced = (optional_param('a', '0', PARAM_INT) == '1') ? true : false;
|
$advanced = (optional_param('a', '0', PARAM_INT) == '1') ? true : false;
|
||||||
$query_string = stripslashes(optional_param('query_string', '', PARAM_CLEAN));
|
$query_string = optional_param('query_string', '', PARAM_CLEAN);
|
||||||
|
|
||||||
$url = new moodle_url('/search/query.php');
|
$url = new moodle_url('/search/query.php');
|
||||||
if ($page_number !== -1) {
|
if ($page_number !== -1) {
|
||||||
|
@ -186,8 +186,8 @@
|
||||||
if (isset($vars)) {
|
if (isset($vars)) {
|
||||||
foreach ($vars as $key => $value) {
|
foreach ($vars as $key => $value) {
|
||||||
// htmlentities breaks non-ascii chars ??
|
// htmlentities breaks non-ascii chars ??
|
||||||
$adv->key = stripslashes($value);
|
$adv->key = $value;
|
||||||
//$adv->$key = stripslashes(htmlentities($value));
|
//$adv->$key = htmlentities($value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue