Add original_url() param documentation
This commit is contained in:
parent
2c959b925d
commit
58a444b430
|
@ -721,12 +721,14 @@ function strip_tracking_query_params($url)
|
||||||
* This function strips tracking query params and follows redirections, either
|
* This function strips tracking query params and follows redirections, either
|
||||||
* through HTTP code or meta refresh tags. Stops after 10 redirections.
|
* through HTTP code or meta refresh tags. Stops after 10 redirections.
|
||||||
*
|
*
|
||||||
|
* @todo Remove the $fetchbody parameter that generates an extraneous HEAD request
|
||||||
|
*
|
||||||
* @see ParseUrl::getSiteinfo
|
* @see ParseUrl::getSiteinfo
|
||||||
*
|
*
|
||||||
* @param string $url
|
* @param string $url A user-submitted URL
|
||||||
* @param int $depth
|
* @param int $depth The current redirection recursion level (internal)
|
||||||
* @param bool $fetchbody
|
* @param bool $fetchbody Wether to fetch the body or not after the HEAD requests
|
||||||
* @return string
|
* @return string A canonical URL
|
||||||
*/
|
*/
|
||||||
function original_url($url, $depth = 1, $fetchbody = false) {
|
function original_url($url, $depth = 1, $fetchbody = false) {
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
|
|
Loading…
Reference in a new issue