diff options
| author | 2015-07-23 11:38:56 +0200 | |
|---|---|---|
| committer | 2015-07-23 11:38:56 +0200 | |
| commit | 1e65fd687e030a24773e88a2e7fb173e8439a99a (patch) | |
| tree | ecfc31b3964d116377643549ff6404f49b227c05 /lib | |
| parent | 7f08c4fcd7a2113f4a0eeaea54b254ec11f0116d (diff) | |
Use filter_var in guessBaseUrl
See https://github.com/FreshRSS/FreshRSS/issues/906
See https://github.com/FreshRSS/FreshRSS/pull/915/files#r35304704
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Request.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index 059b4359c..bf01bc26f 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -103,7 +103,7 @@ class Minz_Request { $url .= substr($path, -1) === '/' ? substr($path, 0, -1) : dirname($path); } - return $url; + return filter_var($url, FILTER_SANITIZE_URL); } /** |
