Skip to content

Commit 4098aa8

Browse files
committed
Apply urldecode to filePath
1 parent f74ffcc commit 4098aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BlueImp/UploadHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public function post() {
435435
header('Vary: Accept');
436436
foreach ($info as $key => $item) {
437437
$info[$key]->filePath = substr($item->url, strlen($this->options['webpath']));
438-
$info[$key]->filePath = preg_replace('/(.)\\1/','$1',$info[$key]->filePath);
438+
$info[$key]->filePath = urldecode(preg_replace('/(.)\\1/','$1',$info[$key]->filePath));
439439
}
440440
$json = json_encode($info);
441441
$redirect = isset($_REQUEST['redirect']) ?

0 commit comments

Comments
 (0)