From f38a9ab039dcd5da5201cf88b5c420a79ec9faff Mon Sep 17 00:00:00 2001 From: Seamus Lee <seamuslee001@gmail.com> 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 14762fff7f1..ee53a4a2c4c 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)) { -- GitLab