mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-04 07:53:00 +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:
@@ -548,8 +548,8 @@ SELECT DISTINCT image_id
|
||||
}
|
||||
|
||||
$comm = array(
|
||||
'author' => trim( stripslashes($params['author']) ),
|
||||
'content' => trim( stripslashes($params['content']) ),
|
||||
'author' => trim( $params['author'] ),
|
||||
'content' => trim( $params['content'] ),
|
||||
'image_id' => $params['image_id'],
|
||||
);
|
||||
|
||||
@@ -1356,7 +1356,7 @@ function ws_session_getStatus($params, &$service)
|
||||
global $user;
|
||||
$res = array();
|
||||
$res['username'] = is_a_guest() ? 'guest' : stripslashes($user['username']);
|
||||
foreach ( array('status', 'template', 'theme', 'language') as $k )
|
||||
foreach ( array('status', 'theme', 'language') as $k )
|
||||
{
|
||||
$res[$k] = $user[$k];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user