Merge pull request #7982 from jitendrapurohit/CRM-18183
[civicrm-core.git] / extern / url.php
index 175235cc61441f7d80741084a5032c0af3d04c9a..0819f9cf173855e6d587b5ec64500c2d4c4298eb 100644 (file)
@@ -35,7 +35,7 @@ if (strlen($query_string) > 0) {
   $pieces = parse_url($url);
 
   if (isset($pieces['fragment'])) {
-  $url = str_replace('#' . $pieces['fragment'], '', $url);
+    $url = str_replace('#' . $pieces['fragment'], '', $url);
   }
 
   // Handle additional query string params.
@@ -54,4 +54,6 @@ if (strlen($query_string) > 0) {
   }
 }
 
-CRM_Utils_System::redirect($url);
+// CRM-17953 - The CMS is not bootstrapped so cannot use CRM_Utils_System::redirect
+header('Location: ' . $url);
+CRM_Utils_System::civiExit();