This website works better with JavaScript.
Home
Register
Sign In
DedeBIZ
/
DedeV6
Watch
2
Star
0
Fork
0
Code
Pull Requests
0
Releases
29
Activity
Browse Source
修正任意文件被删除的bug
tags/6.2.12
tianya
1 year ago
parent
2adb8c851c
commit
72431c5a8d
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/admin/file_class.php
+ 1
- 0
src/admin/file_class.php
View File
@@ -145,6 +145,7 @@ class FileManagement
*/
function DeleteFile($filename)
{
$filename = str_replace("..", "", $filename);
$filename = $this->baseDir.$this->activeDir."/$filename";
if (is_file($filename)) {
@unlink($filename);
Write
Preview
Loading…
Cancel
Save