Avoid // in URIs
This commit is contained in:
parent
3d5c13a3e1
commit
d1b4f74bc2
12
lib/base.php
12
lib/base.php
|
@ -204,7 +204,11 @@ class OC_UTIL {
|
||||||
$file = $application;
|
$file = $application;
|
||||||
$application = "";
|
$application = "";
|
||||||
}
|
}
|
||||||
self::$scripts[] = "$application/js/$file";
|
if( !empty( $application )){
|
||||||
|
self::$scripts[] = "$application/js/$file";
|
||||||
|
}else{
|
||||||
|
self::$scripts[] = "js/$file";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -217,7 +221,11 @@ class OC_UTIL {
|
||||||
$file = $application;
|
$file = $application;
|
||||||
$application = "";
|
$application = "";
|
||||||
}
|
}
|
||||||
self::$styles[] = "$application/css/$file";
|
if( !empty( $application )){
|
||||||
|
self::$styles[] = "$application/css/$file";
|
||||||
|
}else{
|
||||||
|
self::$styles[] = "css/$file";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -63,7 +63,11 @@ class OC_HELPER {
|
||||||
if( file_exists( "$SERVERROOT/apps/img/$app/$image" )){
|
if( file_exists( "$SERVERROOT/apps/img/$app/$image" )){
|
||||||
return "$WEBROOT/apps/img/$app/$image";
|
return "$WEBROOT/apps/img/$app/$image";
|
||||||
}
|
}
|
||||||
return "$WEBROOT/$app/img/$image";
|
if( !empty( $app )){
|
||||||
|
return "$WEBROOT/$app/img/$image";
|
||||||
|
}else{
|
||||||
|
return "$WEBROOT/img/$image";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue