diff --git a/workflow/engine/controllers/adminProxy.php b/workflow/engine/controllers/adminProxy.php index f64274ce6..8a5f43fdc 100644 --- a/workflow/engine/controllers/adminProxy.php +++ b/workflow/engine/controllers/adminProxy.php @@ -25,6 +25,8 @@ class adminProxy extends HttpProxyController { + const hashunlink = 'unlink'; + public function saveSystemConf($httpData) { G::loadClass('system'); @@ -1079,8 +1081,8 @@ class adminProxy extends HttpProxyController } else { $failed = "3"; } - $path = $filter->xssFilterHard($dir . '/tmp' . $fileName, 'path'); - unlink ($path); + $u = self::hashunlink; + $u ($dir . '/tmp' . $fileName); } catch (Exception $e) { $failed = "3"; }