aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2014-11-06 09:16:30 +0000
committerplegall <plg@piwigo.org>2014-11-06 09:16:30 +0000
commit1cc9155c7421b614cafbf1c5a3e59374d46ca300 (patch)
tree841f255eaba773c376e3f2ed56448ff6030b6306 /include
parent7cae40a94f56aedc9e768179b02e95b4e9a1de18 (diff)
bug 3171 fixed: no need to double escape the file name from HTML5 upload
git-svn-id: http://piwigo.org/svn/trunk@30375 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/ws_functions/pwg.images.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ws_functions/pwg.images.php b/include/ws_functions/pwg.images.php
index 3a20de082..04ab65f35 100644
--- a/include/ws_functions/pwg.images.php
+++ b/include/ws_functions/pwg.images.php
@@ -1349,7 +1349,7 @@ function ws_images_upload($params, $service)
$image_id = add_uploaded_file(
$filePath,
- $params['name'],
+ stripslashes($params['name']), // function add_uploaded_file will secure before insert
$params['category'],
$params['level'],
null // image_id = not provided, this is a new photo