Skip to content

Commit c80c4c4

Browse files
author
Serghey Rodin
committed
Additional rXSS fix / closes hestiacp#1558
1 parent e62432e commit c80c4c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/view/file/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
}
1414

1515
if (!empty($_REQUEST['path'])) {
16-
$path = $_REQUEST['path'];
16+
$path = htmlspecialchars($_REQUEST['path'], ENT_QUOTES, 'UTF-8');
1717
if (!empty($_REQUEST['raw'])) {
1818
header('content-type: image/jpeg');
19-
passthru (VESTA_CMD . "v-open-fs-file " . $user . " " . escapeshellarg(htmlspecialchars($_REQUEST['path'], ENT_QUOTES, 'UTF-8')));
19+
passthru (VESTA_CMD . "v-open-fs-file " . $user . " " . escapeshellarg($path));
2020
exit;
2121
}
2222
}

0 commit comments

Comments
 (0)