mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
- do not remove slashes before calling insert_user_comment (homogeneity with update_user_comment and general use of slashes in piwigo)
- when using a modifier on a non array variable use @| instead of | (generated code is simpler and faster) git-svn-id: http://piwigo.org/svn/trunk@6437 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -46,8 +46,8 @@ if ( $page['show_comments'] and isset( $_POST['content'] ) )
|
||||
}
|
||||
|
||||
$comm = array(
|
||||
'author' => trim( stripslashes(@$_POST['author']) ),
|
||||
'content' => trim( stripslashes($_POST['content']) ),
|
||||
'author' => trim( @$_POST['author'] ),
|
||||
'content' => trim( $_POST['content'] ),
|
||||
'image_id' => $page['image_id'],
|
||||
);
|
||||
|
||||
@@ -237,7 +237,7 @@ SELECT
|
||||
$content = '';
|
||||
if ('reject'===@$comment_action)
|
||||
{
|
||||
$content = htmlspecialchars($comm['content']);
|
||||
$content = htmlspecialchars( stripslashes($comm['content']) );
|
||||
}
|
||||
$template->assign('comment_add',
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user