Merged in ronald-quentaprocessmaker/processmaker/HOR-1692 (pull request #4825)

HOR-1692
This commit is contained in:
Julio Cesar Laura Avendaño
2016-08-29 10:05:48 -04:00

View File

@@ -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";
}