From decf9db153f635cf0eb04f63fedd3a97c99e0e81 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 23 Sep 2008 21:15:16 +0000 Subject: [PATCH] MDL-16644 removing stripslahses() MDL-16645 proper form value quoting --- search/query.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/search/query.php b/search/query.php index e1c99e53b7..71e99af8f0 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) { -- 2.39.5