Explorar el Código

Revert "SimplePie seems to only supports HTTP schemes"

This reverts commit 1c38e646c3223571988b33e6a0d481426e3b6931.
Alexandre Alapetite hace 11 años
padre
commit
0ed213d97f
Se han modificado 1 ficheros con 1 adiciones y 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);
 	}
 	}
 }
 }