aboutsummaryrefslogtreecommitdiff
path: root/plugins/cache_starred_images/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-11-24 14:06:57 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-11-24 14:06:57 +0000
commit103bafd90a33abc1478e7c4ec6b732ebd04a4995 (patch)
treef28c7ece3584a7852b6562020246b1de6167774e /plugins/cache_starred_images/init.php
parent53fee911e6a39a5c8504d03d1f114a131d00784c (diff)
parent667528d5b927f0f284a067b0e24c9ca7f26c28a4 (diff)
Merge branch 'feature/php8-str-funcs' into 'master'
Use PHP 8 'str_' functions. See merge request tt-rss/tt-rss!81
Diffstat (limited to 'plugins/cache_starred_images/init.php')
-rwxr-xr-xplugins/cache_starred_images/init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/cache_starred_images/init.php b/plugins/cache_starred_images/init.php
index 208eafde9..cc1eef0dc 100755
--- a/plugins/cache_starred_images/init.php
+++ b/plugins/cache_starred_images/init.php
@@ -205,7 +205,7 @@ class Cache_Starred_Images extends Plugin {
foreach ($entries as $entry) {
- if ($entry->hasAttribute('src') && strpos($entry->getAttribute('src'), "data:") !== 0) {
+ if ($entry->hasAttribute('src') && !str_starts_with($entry->getAttribute('src'), "data:")) {
$has_images = true;