From: Frank J. Gómez Date: Wed, 22 Jul 2015 23:08:19 +0000 (-0400) Subject: OK, I was wrong. parse_url() doesn't need a full URL. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dfd2aa5ffecc22a8a8ba8b10cabd80137c0d18d8;p=civicrm-core.git OK, I was wrong. parse_url() doesn't need a full URL. --- diff --git a/CRM/Event/Form/ManageEvent/TabHeader.php b/CRM/Event/Form/ManageEvent/TabHeader.php index 0f885853b9..34b55e506f 100644 --- a/CRM/Event/Form/ManageEvent/TabHeader.php +++ b/CRM/Event/Form/ManageEvent/TabHeader.php @@ -210,10 +210,8 @@ WHERE e.id = %1 return $tabs; } - // wraps CRM_Utils_System. assumes relative URL. needs real doc :-) + // wraps CRM_Utils_System. needs real doc :-) public static function url($url) { - // parse_url doesn't work with relative URLs, so we make the URL absolute - $url = 'http://discard/' . $url; $urlParts = parse_url($url); $path = (strpos($urlParts['path'], '/') === 0 ? substr($urlParts['path'], 1) : $urlParts['path']);