diff options
| author | 2015-01-29 11:05:20 +0100 | |
|---|---|---|
| committer | 2015-01-29 11:05:20 +0100 | |
| commit | 01a1179b1ae0ee92234a0ef0a67c3e5d6d0b3c7e (patch) | |
| tree | 3d94079d0677121d70c1984649b592cf8c509441 | |
| parent | 8ff3e5363d28dff2eed6d7f152921ed093196a04 (diff) | |
Improve url_remove_credentials
Use @aledeg old function instead
See https://github.com/FreshRSS/FreshRSS/pull/715
See https://github.com/FreshRSS/FreshRSS/issues/711
| -rw-r--r-- | lib/lib_rss.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index e2fcb1fee..e5fe73041 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -437,5 +437,5 @@ function array_remove(&$array, $value) { * @return the same URL without HTTP credentials. */ function url_remove_credentials($url) { - return preg_replace('#((.+)://)((.+)@)?(.+)#', '${1}${5}', $url); + return preg_replace('/[^\/]*:[^:]*@/', '', $url); } |
