Skip to content

Commit d2ef8f9

Browse files
authored
1 parent f2d9bd8 commit d2ef8f9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

web/download/backup/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131

3232
if ((!empty($_SESSION['user'])) && ($_SESSION['userContext'] != 'admin')) {
33-
if (strpos($backup, $user.'.') === 0) {
33+
if (strpos($backup, $_SESSION['user'].'.') === 0) {
3434
header('Content-type: application/gzip');
3535
header("Content-Disposition: attachment; filename=\"".$backup."\";");
3636
header("X-Accel-Redirect: /backup/" . $backup);

web/inc/main.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ function destroy_sessions()
127127
$user_plain = htmlentities($_SESSION['look']);
128128
}
129129

130+
if (empty($_SESSION['look'])) {
131+
$_SESSION['look'] = '';
132+
}
133+
130134
require_once(dirname(__FILE__) . '/i18n.php');
131135

132136
function check_error($return_var)

0 commit comments

Comments
 (0)