aboutsummaryrefslogtreecommitdiff
path: root/app/Models/ConfigurationSetter.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-08-14 22:45:33 +0200
committerGravatar GitHub <noreply@github.com> 2016-08-14 22:45:33 +0200
commitc378e87b99b58829a704ea4f181108b86dd17e5f (patch)
treeec94b2b251d1fee86abb978d1b72be7a0f171dae /app/Models/ConfigurationSetter.php
parent52fea863c19d5469d3730853d18c5535e4ddf308 (diff)
parent2bf35b23f5548260a17ab24c08ac8c187c8ada24 (diff)
Merge pull request #1213 from Alkarex/drop-php-5.3.2
Remove code for PHP 5.3.2-
Diffstat (limited to 'app/Models/ConfigurationSetter.php')
-rw-r--r--app/Models/ConfigurationSetter.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php
index e472b1e7f..79bd0170b 100644
--- a/app/Models/ConfigurationSetter.php
+++ b/app/Models/ConfigurationSetter.php
@@ -129,12 +129,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) ||
- (version_compare(PHP_VERSION, '5.3.3', '<') &&
- (strpos($value, '-') > 0) &&
- ($value === filter_var($value, FILTER_SANITIZE_URL)))
- ); //PHP bug #51192
+ $is_url = filter_var($value['url'], FILTER_VALIDATE_URL);
if (!$is_url) {
continue;
}