mirror of
https://github.com/unraid/webgui.git
synced 2026-01-27 03:59:01 -06:00
Browser correction in parent folder link
This commit is contained in:
@@ -16,9 +16,8 @@ require_once "$docroot/webGui/include/Helpers.php";
|
||||
|
||||
function parent_link() {
|
||||
global $dir,$path;
|
||||
if (!$dir || $dir=='/' || dirname($dir)=='/mnt' || dirname($dir)=='/mnt/user') return "";
|
||||
$parent = urlencode_path(dirname($dir));
|
||||
return "<a href=\"".htmlspecialchars("/$path?dir=$parent")."\">Parent Directory...</a>";
|
||||
return ($dir && dirname($dir)!='/' && dirname($dir)!='/mnt' && dirname($dir)!='/mnt/user')
|
||||
? "<a href=\"".htmlspecialchars("/$path?dir=".urlencode_path(dirname($dir)))."\">Parent Directory...</a>" : "";
|
||||
}
|
||||
|
||||
function trim_slash($url){
|
||||
|
||||
Reference in New Issue
Block a user