CRM-13793 assignment has no effect error cleanup
authorJoe Murray <joe.murray@jmaconsulting.biz>
Mon, 18 Nov 2013 22:05:22 +0000 (17:05 -0500)
committerJoe Murray <joe.murray@jmaconsulting.biz>
Mon, 18 Nov 2013 22:05:22 +0000 (17:05 -0500)
CRM/Core/BAO/Navigation.php

index 037acf033436ea76e2e0b7b2814b45364f7fb81a..3ba44506d0a33de8ed800b95f0ed74f6bd6fd8f4 100644 (file)
@@ -488,10 +488,7 @@ ORDER BY parent_id, weight";
 
     $makeLink = FALSE;
     if (isset($url) && $url) {
-      if (substr($url, 0, 4) === 'http') {
-        $url = $url;
-      }
-      else {
+      if (substr($url, 0, 4) !== 'http') {
         //CRM-7656 --make sure to separate out url path from url params,
         //as we'r going to validate url path across cross-site scripting.
         $urlParam = CRM_Utils_System::explode('&', str_replace('?', '&', $url), 2);