Improved trim_slash function for browser url

This commit is contained in:
bergware
2017-08-21 12:22:50 +02:00
parent 87d78c8abb
commit 8e3da0399c
+1 -1
View File
@@ -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));