From 4ed4fba8b9e4cc46172aaea1d09c740b3fa5107d Mon Sep 17 00:00:00 2001 From: tale Date: Sun, 13 Mar 2016 00:28:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E7=BB=B4=E6=95=B0=E7=BB=84=E7=9A=84?= =?UTF-8?q?=E7=82=B9=E8=AF=AD=E6=B3=95=E6=94=AF=E6=8C=81=E6=95=B0=E5=AD=97?= =?UTF-8?q?=E9=94=AE=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Template.php b/library/think/Template.php index 015a5664..8e1c0e3e 100644 --- a/library/think/Template.php +++ b/library/think/Template.php @@ -793,7 +793,7 @@ class Template public function parseVar(&$varStr) { $varStr = trim($varStr); - if (preg_match_all('/\$[a-zA-Z_](?>\w*)(?:[:\.][a-zA-Z_](?>\w*))+/', $varStr, $matches, PREG_OFFSET_CAPTURE)) { + if (preg_match_all('/\$[a-zA-Z_](?>\w*)(?:[:\.][0-9a-zA-Z_](?>\w*))+/', $varStr, $matches, PREG_OFFSET_CAPTURE)) { static $_varParseList = []; while ($matches[0]) { $match = array_pop($matches[0]);