修正由于转义引号导致的在sqlite下查询失败错误
修正由于部分主机没有安装mb插件导致无法输出markdown文本的错误

fix #288

给expression增加参数$escape来控制是否转义语句
This commit is contained in:
祁宁
2014-10-09 22:19:22 +08:00
parent 52f7f3a29a
commit 80de4900df
6 changed files with 38 additions and 22 deletions

View File

@@ -74,6 +74,9 @@ foreach ($lists as $file) {
}
}
$source = str_replace(array('mb_strtoupper', 'mb_strlen'),
array('Typecho_Common::strToUpper', 'Typecho_Common::strLen'), $source);
$tokens = token_get_all($source);
$source = '';