Skip to content

Commit 5bfec78

Browse files
committed
Change value check
1 parent 2fb78e4 commit 5bfec78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/SimplePie/Sanitize.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,9 @@ public function replace_urls($document, $tag, $attributes)
511511
if ($element->hasAttribute($attribute))
512512
{
513513
$value = $this->registry->call('Misc', 'absolutize_url', array($element->getAttribute($attribute), $this->base));
514-
$value = $this->https_url($value);
515-
if ($value)
514+
if ($value !== false)
516515
{
516+
$value = $this->https_url($value);
517517
$element->setAttribute($attribute, $value);
518518
}
519519
}

0 commit comments

Comments
 (0)