浏览代码

SimplePie forgot static keyword

https://github.com/FreshRSS/FreshRSS/issues/711
Alexandre Alapetite 11 年之前
父节点
当前提交
2bfc4dbf8b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/SimplePie/SimplePie/Misc.php

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

@@ -2246,7 +2246,7 @@ function embed_wmedia(width, height, link) {
 	 * @param $url the URL to sanitize.
 	 * @return the same URL without HTTP credentials.
 	 */
-	function url_remove_credentials($url)	//FreshRSS
+	public static function url_remove_credentials($url)	//FreshRSS
 	{
 		return preg_replace('#^(https?://)[^/:@]+:[^/:@]+@#i', '$1', $url);
 	}