mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-02 22:12:16 +02:00
Set correct FM_SELF_URL
This commit is contained in:
parent
1211750126
commit
7d98bdf5b2
|
@ -230,7 +230,7 @@ $root_url = fm_clean_path($root_url);
|
|||
|
||||
// abs path for site
|
||||
defined('FM_ROOT_URL') || define('FM_ROOT_URL', ($is_https ? 'https' : 'http') . '://' . $http_host . (!empty($root_url) ? '/' . $root_url : ''));
|
||||
defined('FM_SELF_URL') || define('FM_SELF_URL', ($is_https ? 'https' : 'http') . '://' . $http_host . $_SERVER['REDIRECT_URL']);
|
||||
defined('FM_SELF_URL') || define('FM_SELF_URL', ($is_https ? 'https' : 'http') . '://' . $http_host . '/browse');
|
||||
|
||||
// logout
|
||||
if (isset($_GET['logout'])) {
|
||||
|
@ -986,7 +986,7 @@ if (isset($_POST['group']) && (isset($_POST['zip']) || isset($_POST['tar'])) &&
|
|||
fm_set_msg('Nothing selected', 'alert');
|
||||
}
|
||||
|
||||
fm_redirect(FM_SELF_URL . 'browse?p=' . urlencode(FM_PATH));
|
||||
fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
|
||||
}
|
||||
|
||||
// Unpack
|
||||
|
|
Loading…
Reference in a new issue