fixed #1802 fixed double escape for user creation, album creation and comments

This commit is contained in:
Matthieu Leproux
2022-11-22 16:01:32 +01:00
parent 6278be093a
commit 32ea1aef53
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -214,10 +214,10 @@ SELECT count(1) FROM '.COMMENTS_TABLE.'
INSERT INTO '.COMMENTS_TABLE.'
(author, author_id, anonymous_id, content, date, validated, validation_date, image_id, website_url, email)
VALUES (
\''.pwg_db_real_escape_string($comm['author']).'\',
\''.$comm['author'].'\',
'.$comm['author_id'].',
\''.$comm['ip'].'\',
\''.pwg_db_real_escape_string($comm['content']).'\',
\''.$comm['content'].'\',
NOW(),
\''.($comment_action=='validate' ? 'true':'false').'\',
'.($comment_action=='validate' ? 'NOW()':'NULL').',