From 067479a9f16cb91753acfd1fea5d0a18106e1c44 Mon Sep 17 00:00:00 2001 From: Inverle Date: Tue, 23 Sep 2025 22:12:44 +0200 Subject: Lazy-load `` (#7997) Follow-up of #7636 I found it's the only missing element that needs to be lazy loaded by putting HTML of https://github.com/cure53/HTTPLeaks/blob/main/leak.html into a feed --- lib/lib_rss.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index efb427fc4..27978122a 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -731,8 +731,8 @@ function validateEmailAddress(string $email): bool { */ function lazyimg(string $content): string { return preg_replace([ - '/<((?:img|image|iframe)[^>]+?)src="([^"]+)"([^>]*)>/i', - "/<((?:img|image|iframe)[^>]+?)src='([^']+)'([^>]*)>/i", + '/<((?:img|image|iframe|track)[^>]+?)src="([^"]+)"([^>]*)>/i', + "/<((?:img|image|iframe|track)[^>]+?)src='([^']+)'([^>]*)>/i", '/<((?:video)[^>]+?)poster="([^"]+)"([^>]*)>/i', "/<((?:video)[^>]+?)poster='([^']+)'([^>]*)>/i", ], [ -- cgit v1.2.3