We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e62432e commit c80c4c4Copy full SHA for c80c4c4
web/view/file/index.php
@@ -13,10 +13,10 @@
13
}
14
15
if (!empty($_REQUEST['path'])) {
16
- $path = $_REQUEST['path'];
+ $path = htmlspecialchars($_REQUEST['path'], ENT_QUOTES, 'UTF-8');
17
if (!empty($_REQUEST['raw'])) {
18
header('content-type: image/jpeg');
19
- 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));
20
exit;
21
22
0 commit comments