Skip to content

Commit 68535ed

Browse files
committed
fixed: allow deletions of files with special chars
1 parent 6b067ef commit 68535ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actions/dataroot_browser/delete_file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use Elgg\Project\Paths;
44

5-
$file = ltrim(Paths::sanitize(get_input('file'), false), '/');
5+
$file = ltrim(Paths::sanitize(get_input('file', null, false), false), '/');
66

77
if (empty($file)) {
88
return elgg_error_response(elgg_echo('dataroot_browser:actions:delete_file:error:input'));

0 commit comments

Comments
 (0)