From 100b381f5d21df3a546e2b5929916c4e68577326 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 7 Jul 2020 12:17:51 +1000 Subject: [PATCH] Only encode url if it is the front end in unit tests --- CRM/Utils/System/UnitTests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.25.1