From c523f5a4e7d346a02528c9143767d0505664d0da Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 31 Jul 2020 16:33:45 +0200 Subject: Relaxed to allow underscore _ in URL hostnames (#3133) * Relaxed to allow underscore _ in URL hostnames #fix https://github.com/FreshRSS/FreshRSS/issues/3132 https://bugs.php.net/bug.php?id=64948 * Minor fix in favicons redirect * Minor fix in relative HREF for favicons --- app/Models/Feed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/Feed.php') diff --git a/app/Models/Feed.php b/app/Models/Feed.php index a681345d4..7811d05b2 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -188,7 +188,7 @@ class FreshRSS_Feed extends Minz_Model { if ($validate) { $value = checkUrl($value); } - if (empty($value)) { + if ($value == '') { throw new FreshRSS_BadUrl_Exception($value); } $this->url = $value; @@ -204,7 +204,7 @@ class FreshRSS_Feed extends Minz_Model { if ($validate) { $value = checkUrl($value); } - if (empty($value)) { + if ($value == '') { $value = ''; } $this->website = $value; -- cgit v1.2.3