From 5044194e93a274bc80a7fff336ab17d6ffc754d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=99=88=E5=8F=94=E5=8F=94?= Date: Sat, 9 Jan 2016 13:59:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=A8=A1=E6=9D=BF=E6=AF=94?= =?UTF-8?q?=E8=BE=83=E6=A0=87=E7=AD=BE,value=E5=80=BC=E4=B8=BA=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E6=97=B6=E7=9A=84=E4=B8=8D=E8=83=BD=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/template/taglib/Cx.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/template/taglib/Cx.php b/library/think/template/taglib/Cx.php index 25fedbcc..d772612d 100644 --- a/library/think/template/taglib/Cx.php +++ b/library/think/template/taglib/Cx.php @@ -319,7 +319,7 @@ class Cx extends Taglib $name = $this->autoBuildVar($name); $flag = substr($value, 0, 1); if ('$' == $flag || ':' == $flag) { - $value = $this->autoBuildVar($value); + $value = '(' . $this->autoBuildVar($value) . ')'; } else { $value = '\'' . $value . '\''; }