CRM-12396
authorDonald A. Lobo <lobo@civicrm.org>
Mon, 22 Apr 2013 21:55:38 +0000 (14:55 -0700)
committerDonald A. Lobo <lobo@civicrm.org>
Mon, 22 Apr 2013 21:55:38 +0000 (14:55 -0700)
----------------------------------------
* CRM-12396: tokens in html not transformed
  http://issues.civicrm.org/jira/browse/CRM-12396

CRM/Utils/Token.php

index 6f170472010c1df451eb84bc1c4ffd00b5220c03..1047ceca4b57921ba9524a72c8363d0c86679e84 100644 (file)
@@ -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);
   }
 
   /**