diff --git a/lib/html.php b/lib/html.php index 1b9b5ab7..24a2cab4 100644 --- a/lib/html.php +++ b/lib/html.php @@ -280,9 +280,9 @@ $keptText = array()){ function defaultImageSrcTo($content, $server){ foreach($content->find('img') as $image){ - if(is_null(strpos($image->src, "http")) - && is_null(strpos($image->src, "//")) - && is_null(strpos($image->src, "data:"))) + if(strpos($image->src, 'http') === false + && strpos($image->src, '//') === false + && strpos($image->src, 'data:') === false) $image->src = $server . $image->src; } return $content;