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 8503efa commit dac0b5cCopy full SHA for dac0b5c
web/download/backup/index.php
@@ -13,7 +13,7 @@
13
}
14
15
if ((!empty($_SESSION['user'])) && ($_SESSION['user'] != 'admin')) {
16
- if (preg_match("/^".$user."/i", $backup)) {
+ if (strpos($backup, $user.'.') === 0) {
17
header('Content-type: application/gzip');
18
header("Content-Disposition: attachment; filename=\"".$backup."\";" );
19
header("X-Accel-Redirect: /backup/" . $backup);
0 commit comments