aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-07-31 16:33:45 +0200
committerGravatar GitHub <noreply@github.com> 2020-07-31 16:33:45 +0200
commitc523f5a4e7d346a02528c9143767d0505664d0da (patch)
tree1e8f5e99918eab3ebce79b2cb2a63503fafa5612 /app/Models/Feed.php
parent48da9cb5b325377fa7c1fdb771fe44415dbcbb97 (diff)
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
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php4
1 files changed, 2 insertions, 2 deletions
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;