Browse Source

Merge remote-tracking branch 'origin/Logging' into dev

Alexandre Alapetite 11 years ago
parent
commit
c83d30db64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/SimplePie/SimplePie/Misc.php

+ 1 - 1
lib/SimplePie/SimplePie/Misc.php

@@ -2248,7 +2248,7 @@ function embed_wmedia(width, height, link) {
 	 */
 	 */
 	function url_remove_credentials($url)	//FreshRSS
 	function url_remove_credentials($url)	//FreshRSS
 	{
 	{
-		return preg_replace('#(?<=//)[^/:@]+:[^/:@]+@#', '', $url);
+		return preg_replace('#(?<=^https?://)[^/:@]+:[^/:@]+@#', '', $url);
 	}
 	}
 }
 }