From dfd2aa5ffecc22a8a8ba8b10cabd80137c0d18d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Wed, 22 Jul 2015 19:08:19 -0400 Subject: [PATCH] OK, I was wrong. parse_url() doesn't need a full URL. --- CRM/Event/Form/ManageEvent/TabHeader.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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']); -- 2.25.1