diff options
| author | 2025-09-23 22:12:44 +0200 | |
|---|---|---|
| committer | 2025-09-23 22:12:44 +0200 | |
| commit | 067479a9f16cb91753acfd1fea5d0a18106e1c44 (patch) | |
| tree | 307ab6250079589f581bd9bd06c4469a876f39eb /lib/lib_rss.php | |
| parent | 87087e44738f50e062322472d546bc6cc686118b (diff) | |
Lazy-load `<track src>` (#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
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 4 |
1 files changed, 2 insertions, 2 deletions
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", ], [ |
