Skip to content

Commit

Permalink
MDL-24058 removing obsolte stripslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 2, 2010
1 parent 798b0b3 commit 0052103
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions search/query.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
$page_number = optional_param('page', -1, PARAM_INT);
$pages = ($page_number == -1) ? false : true;
$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');
if ($page_number !== -1) {
Expand Down Expand Up @@ -186,8 +186,8 @@
if (isset($vars)) {
foreach ($vars as $key => $value) {
// htmlentities breaks non-ascii chars ??
$adv->key = stripslashes($value);
//$adv->$key = stripslashes(htmlentities($value));
$adv->key = $value;
//$adv->$key = htmlentities($value);
}
}
?>
Expand Down

0 comments on commit 0052103

Please sign in to comment.