mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-09 15:02:31 +01:00
Forgotten Comments author name to be escaped and correctly displayed
git-svn-id: http://piwigo.org/svn/trunk@4305 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
1235bab527
commit
41fe69917c
1 file changed
+2
-2
@@ -156,9 +156,9 @@ SELECT id FROM '.COMMENTS_TABLE.'
|
||||
INSERT INTO '.COMMENTS_TABLE.'
|
||||
(author, author_id, content, date, validated, validation_date, image_id)
|
||||
VALUES (
|
||||
"'.$comm['author'].'",
|
||||
"'.addslashes($comm['author']).'",
|
||||
'.$comm['author_id'].',
|
||||
"'.$comm['content'].'",
|
||||
"'.addslashes($comm['content']).'",
|
||||
NOW(),
|
||||
"'.($comment_action=='validate' ? 'true':'false').'",
|
||||
'.($comment_action=='validate' ? 'NOW()':'NULL').',
|
||||
|
||||
Reference in new issue
Block a user