aboutsummaryrefslogtreecommitdiffstats
path: root/comments.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2009-11-04 20:50:17 +0000
committernikrou <nikrou@piwigo.org>2009-11-04 20:50:17 +0000
commit9e6a2542901bbf6aae288744661799da952ff403 (patch)
tree3005bad2986b608c16da44d96c1cf4d1bfadf978 /comments.php
parentd7f6cbb5fddd1864d3110bd73e9a633bb9f09f13 (diff)
bug 1220 : fix regression in display when search by author or by keyword contains quote.
git-svn-id: http://piwigo.org/svn/trunk@4182 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--comments.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/comments.php b/comments.php
index 749dcfc92..a9207da48 100644
--- a/comments.php
+++ b/comments.php
@@ -204,8 +204,8 @@ $template->set_filenames(array('comments'=>'comments.tpl'));
$template->assign(
array(
'F_ACTION'=>PHPWG_ROOT_PATH.'comments.php',
- 'F_KEYWORD'=> @htmlspecialchars($_GET['keyword'], ENT_QUOTES, 'utf-8'),
- 'F_AUTHOR'=> @htmlspecialchars($_GET['author'], ENT_QUOTES, 'utf-8'),
+ 'F_KEYWORD'=> @htmlspecialchars(stripslashes($_GET['keyword'], ENT_QUOTES, 'utf-8')),
+ 'F_AUTHOR'=> @htmlspecialchars(stripslashes($_GET['author'], ENT_QUOTES, 'utf-8')),
)
);