Only encode url if it is the front end in unit tests
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 7 Jul 2020 02:17:51 +0000 (12:17 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 7 Jul 2020 02:17:51 +0000 (12:17 +1000)
CRM/Utils/System/UnitTests.php

index 14762fff7f1f3e9f360bf051aa471f66ca48b578..ee53a4a2c4c45d3f93926f0506253d72bccbffbb 100644 (file)
@@ -92,7 +92,7 @@ class CRM_Utils_System_UnitTests extends CRM_Utils_System_Base {
     }
     $base = $absolute ? $config->userFrameworkBaseURL : $config->useFrameworkRelativeBase;
 
-    $separator = $htmlize ? '&amp;' : '&';
+    $separator = ($htmlize && $frontend) ? '&amp;' : '&';
 
     if (!$config->cleanURL) {
       if (isset($path)) {