pull/111/merge
Yuri Ritvin 2021-12-22 00:56:27 +01:00 committed by GitHub
commit ac75ab6c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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