Skip to content

Commit 1142ead

Browse files
authored
hestiacp#944 Filegator does keep track of the “current path” in the user session (hestiacp#1580)
* Filegator does keep track of the “current path” in the user session when not leaving FM via “Back to CP” those paths remain in place. Sugested changes removes those files also hestiacp#994 * Add _sf2_meta aswell
1 parent 977b6d5 commit 1142ead

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

web/login/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
reset($data);
2626
$_SESSION['look'] = key($data);
2727
$_SESSION['look_alert'] = 'yes';
28+
# Remove current path for filemanager
29+
unset($_SESSION['_sf2_attributes']);
30+
unset($_SESSION['_sf2_meta']);
2831
}
2932
}
3033
if ($_SESSION['user'] == 'admin' && empty($_GET['loginas'])) {

web/logout/index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
define('HESTIA_CMD', '/usr/bin/sudo /usr/local/hestia/bin/');
55

66
if (!empty($_SESSION['look'])) {
7-
87
unset($_SESSION['look']);
8+
# Remove current path for filemanager
9+
unset($_SESSION['_sf2_attributes']);
10+
unset($_SESSION['_sf2_meta']);
911
header("Location: /");
1012
} else {
1113
if($_SESSION['MURMUR'] && $_SESSION['user']){

0 commit comments

Comments
 (0)