Explorar o código

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

Alexandre Alapetite %!s(int64=11) %!d(string=hai) anos
pai
achega
3aa15d95a8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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('#(?<=^https?://)[^/:@]+:[^/:@]+@#', '', $url);
+		return preg_replace('#(?<=//)[^/:@]+:[^/:@]+@#', '', $url);
 	}
 	}
 }
 }