aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2014-11-06 09:17:46 +0000
committerplegall <plg@piwigo.org>2014-11-06 09:17:46 +0000
commit5b9c25cf0305a462ef07eb8b60819a573d668757 (patch)
tree54937d93857610a6b80f4b3cf0868fc8fa943800
parent3f835e9aae1c074eb763ea1da4873e20c8a686d7 (diff)
merge r30375 from trunk to branch 2.7
bug 3171 fixed: no need to double escape the file name from HTML5 upload git-svn-id: http://piwigo.org/svn/branches/2.7@30376 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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