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 fae1346 commit fb306e9Copy full SHA for fb306e9
application/controllers/DaemonController.php
@@ -60,7 +60,7 @@ public function scriptAction(): void
60
->getBaseDir() . '/public/js';
61
62
$filePath = realpath($root . DIRECTORY_SEPARATOR . 'notifications-' . $fileName . $extension);
63
- if ($filePath === false) {
+ if ($filePath === false || substr($filePath, 0, strlen($root)) !== $root) {
64
if ($fileName === 'undefined') {
65
$this->httpNotFound(t("No file name submitted"));
66
}
0 commit comments