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 f2d9bd8 commit d2ef8f9Copy full SHA for d2ef8f9
web/download/backup/index.php
@@ -30,7 +30,7 @@
30
}
31
32
if ((!empty($_SESSION['user'])) && ($_SESSION['userContext'] != 'admin')) {
33
- if (strpos($backup, $user.'.') === 0) {
+ if (strpos($backup, $_SESSION['user'].'.') === 0) {
34
header('Content-type: application/gzip');
35
header("Content-Disposition: attachment; filename=\"".$backup."\";");
36
header("X-Accel-Redirect: /backup/" . $backup);
web/inc/main.php
@@ -127,6 +127,10 @@ function destroy_sessions()
127
$user_plain = htmlentities($_SESSION['look']);
128
129
130
+if (empty($_SESSION['look'])) {
131
+ $_SESSION['look'] = '';
132
+}
133
+
134
require_once(dirname(__FILE__) . '/i18n.php');
135
136
function check_error($return_var)
0 commit comments