From ba63dd7035e56d496521e2423f5c8c1f1b7fd823 Mon Sep 17 00:00:00 2001 From: yurir Date: Tue, 9 Nov 2021 21:43:58 +0200 Subject: [PATCH] fix double slash --- h5p-default-storage.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p-default-storage.class.php b/h5p-default-storage.class.php index ca77322..d048b7f 100644 --- a/h5p-default-storage.class.php +++ b/h5p-default-storage.class.php @@ -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); }