aboutsummaryrefslogtreecommitdiff
path: root/app/Models/ConfigurationSetter.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/ConfigurationSetter.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/ConfigurationSetter.php')
-rw-r--r--app/Models/ConfigurationSetter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php
index e6bcec54c..1d4b7f667 100644
--- a/app/Models/ConfigurationSetter.php
+++ b/app/Models/ConfigurationSetter.php
@@ -118,7 +118,7 @@ class FreshRSS_ConfigurationSetter {
// Verify URL and add default value when needed
if (isset($value['url'])) {
- $is_url = filter_var($value['url'], FILTER_VALIDATE_URL);
+ $is_url = checkUrl($value['url']);
if (!$is_url) {
continue;
}