From: Seamus Lee Date: Tue, 7 Jul 2020 02:17:51 +0000 (+1000) Subject: Only encode url if it is the front end in unit tests X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=100b381f5d21df3a546e2b5929916c4e68577326;p=civicrm-core.git Only encode url if it is the front end in unit tests --- diff --git a/CRM/Utils/System/UnitTests.php b/CRM/Utils/System/UnitTests.php index 14762fff7f..ee53a4a2c4 100644 --- a/CRM/Utils/System/UnitTests.php +++ b/CRM/Utils/System/UnitTests.php @@ -92,7 +92,7 @@ class CRM_Utils_System_UnitTests extends CRM_Utils_System_Base { } $base = $absolute ? $config->userFrameworkBaseURL : $config->useFrameworkRelativeBase; - $separator = $htmlize ? '&' : '&'; + $separator = ($htmlize && $frontend) ? '&' : '&'; if (!$config->cleanURL) { if (isset($path)) {