diff --git a/search/query.php b/search/query.php index e1c99e53b73..71e99af8f0b 100644 --- a/search/query.php +++ b/search/query.php @@ -178,8 +178,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); } } ?> @@ -187,7 +187,7 @@ - +     | @@ -310,7 +310,7 @@ print "
"; - print $hit_count.' '.get_string('resultsreturnedfor', 'search') . " '".stripslashes($query_string)."'."; + print $hit_count.' '.get_string('resultsreturnedfor', 'search') . " '".s($query_string)."'."; print "
"; if ($hit_count > 0) {