From 93f087c753b632de36f9764adad5955564d52fba Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Mon, 22 Apr 2013 14:55:38 -0700 Subject: [PATCH] CRM-12396 ---------------------------------------- * CRM-12396: tokens in html not transformed http://issues.civicrm.org/jira/browse/CRM-12396 --- CRM/Utils/Token.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Token.php b/CRM/Utils/Token.php index 6f17047201..1047ceca4b 100644 --- a/CRM/Utils/Token.php +++ b/CRM/Utils/Token.php @@ -155,7 +155,7 @@ class CRM_Utils_Token { */ public static function token_match($type, $var, &$str) { $token = preg_quote('{' . "$type.$var") . '(\|.+?)?' . preg_quote('}'); - return preg_match("/(^|[^\{]) $token/", $str); + return preg_match("/(^|[^\{])$token/", $str); } /** -- 2.25.1