mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 12:36:23 -07:00
Additional rXSS fix / closes #1558
This commit is contained in:
parent
e62432e672
commit
c80c4c472e
1 changed files with 2 additions and 2 deletions
|
@ -13,10 +13,10 @@ if (($_SESSION['user'] == 'admin') && (!empty($_SESSION['look']))) {
|
|||
}
|
||||
|
||||
if (!empty($_REQUEST['path'])) {
|
||||
$path = $_REQUEST['path'];
|
||||
$path = htmlspecialchars($_REQUEST['path'], ENT_QUOTES, 'UTF-8');
|
||||
if (!empty($_REQUEST['raw'])) {
|
||||
header('content-type: image/jpeg');
|
||||
passthru (VESTA_CMD . "v-open-fs-file " . $user . " " . escapeshellarg(htmlspecialchars($_REQUEST['path'], ENT_QUOTES, 'UTF-8')));
|
||||
passthru (VESTA_CMD . "v-open-fs-file " . $user . " " . escapeshellarg($path));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue