mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 18:48:49 -05:00
Improved trim_slash function for browser url
This commit is contained in:
@@ -21,7 +21,7 @@ function parent_link() {
|
||||
}
|
||||
|
||||
function trim_slash($url){
|
||||
return str_replace('//','/',$url);
|
||||
return preg_replace('/\/\/+/','/',$url);
|
||||
}
|
||||
|
||||
extract(parse_plugin_cfg('dynamix',true));
|
||||
|
||||
Reference in New Issue
Block a user