Explorar el Código

Merge upstream SimplePie PR details (#3614)

https://github.com/simplepie/simplepie/pull/681
https://github.com/simplepie/simplepie/pull/680
https://github.com/simplepie/simplepie/pull/675
Alexandre Alapetite hace 4 años
padre
commit
224b20edd1
Se han modificado 2 ficheros con 5 adiciones y 3 borrados
  1. 2 0
      lib/SimplePie/SimplePie.php
  2. 3 3
      lib/SimplePie/SimplePie/Misc.php

+ 2 - 0
lib/SimplePie/SimplePie.php

@@ -929,6 +929,8 @@ class SimplePie
 
 	/**
 	 * Return the filename (i.e. hash, without path and without extension) of the file to cache a given URL.
+	 * @param string $url The URL of the feed to be cached.
+	 * @return string A filename (i.e. hash, without path and without extension).
 	 */
 	public function get_cache_filename($url)
 	{

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

@@ -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);
 	}