diff --git a/api/src/Html/HtmLawed.php b/api/src/Html/HtmLawed.php
index 2445d2eaca..33b410a521 100644
--- a/api/src/Html/HtmLawed.php
+++ b/api/src/Html/HtmLawed.php
@@ -177,7 +177,7 @@ class HtmLawed
$style = $style2buffer ?? '';
// clean out comments and stuff
$search = array(
- '@url\(http:\/\/[^\)].*?\)@si', // url calls e.g. in style definitions
+ '@url\(https?:\/\/[^\)].*?\)@si', // url calls e.g. in style definitions
// '@@', // Strip multi-line comments including CDATA
// '@