Browse Source

Add original_url() param documentation

pull/3171/head
Hypolite Petovan 4 years ago
parent
commit
58a444b430
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      include/network.php

+ 6
- 4
include/network.php View File

@ -721,12 +721,14 @@ function strip_tracking_query_params($url)
* This function strips tracking query params and follows redirections, either
* 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
*
* @param string $url
* @param int $depth
* @param bool $fetchbody
* @return string
* @param string $url A user-submitted URL
* @param int $depth The current redirection recursion level (internal)
* @param bool $fetchbody Wether to fetch the body or not after the HEAD requests
* @return string A canonical URL
*/
function original_url($url, $depth = 1, $fetchbody = false) {
$a = get_app();


Loading…
Cancel
Save