X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fnetwork.php;h=166f911680f94c3a43a5e5ee860fc6f99149df67;hb=660bd39efad52b1c69bd8dd0ca27141b81f84ca5;hp=79843a3322fb9ff0f55b4c218b6d7a8e7b798fc4;hpb=f58104e357fe55bd298773eef23fb9e2ac04abf4;p=friendica.git diff --git a/include/network.php b/include/network.php index 79843a3322..166f911680 100644 --- a/include/network.php +++ b/include/network.php @@ -1126,9 +1126,20 @@ function original_url($url, $depth=1, $fetchbody = false) { if (in_array($param, array("utm_source", "utm_medium", "utm_term", "utm_content", "utm_campaign", "wt_mc", "pk_campaign", "pk_kwd", "mc_cid", "mc_eid", "fb_action_ids", "fb_action_types", "fb_ref", + "awesm", "woo_campaign", "woo_source", "woo_medium", "woo_content", "woo_term"))) { + + $pair = $param."=".urlencode($value); + $url = str_replace($pair, "", $url); + + // Second try: if the url isn't encoded completely + $pair = $param."=".str_replace(" ", "+", $value); + $url = str_replace($pair, "", $url); + + // Third try: Maybey the url isn't encoded at all $pair = $param."=".$value; $url = str_replace($pair, "", $url); + $url = str_replace(array("?&", "&&"), array("?", ""), $url); }