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