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
pull/780/head
Marien Fressinaud 10 years ago
parent 8ff3e5363d
commit 01a1179b1a
  1. 2
      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);
}

Loading…
Cancel
Save