fix double slash

pull/111/head
yurir 2021-11-09 21:43:58 +02:00
parent 64beb801db
commit ba63dd7035
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ class H5PDefaultStorage implements \H5PFileStorage {
if (preg_match("/^(data:|([a-z0-9]+:)?\/)/i", $matches[1]) === 1) {
return $matches[0]; // Not relative, skip
}
if (strpos(url, "/") == 0) {
if (strpos($cssRelPath, "/") == 0) {
// To avoid duplicate double slash
$cssRelPath = substr($cssRelPath, 1);
}