소스 검색

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

Alexandre Alapetite 11 년 전
부모
커밋
a5e960acbe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 	{
-		return preg_replace('#(?<=//)[^/:@]+:[^/:@]+@#', '', $url);
+		return preg_replace('#^(https?://)[^/:@]+:[^/:@]+@#i', '$1', $url);
 	}
 }