diff options
| author | 2017-02-25 11:51:54 +0100 | |
|---|---|---|
| committer | 2017-02-25 11:51:54 +0100 | |
| commit | 8a6b38115456f592c8a246f9abbb84f4449721c0 (patch) | |
| tree | 120cdc14b22d2798ce97f6f086b74becb42b5715 /lib/lib_rss.php | |
| parent | b8ac2b1d8ab47642018bd3f0fe6863b69a2743d6 (diff) | |
Sanitize Web site URL
https://github.com/FreshRSS/FreshRSS/issues/1434
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 560e5b256..78c9cabea 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -69,10 +69,10 @@ function idn_to_puny($url) { } function checkUrl($url) { - if (empty ($url)) { + if ($url == '') { return ''; } - if (!preg_match ('#^https?://#i', $url)) { + if (!preg_match('#^https?://#i', $url)) { $url = 'http://' . $url; } $url = idn_to_puny($url); //PHP bug #53474 IDN |
