mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-06 07:28:29 -05:00
SimplePie forgot static keyword
https://github.com/FreshRSS/FreshRSS/issues/711
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user