gwa2: general web application architecture
核心部分,
1. inc/webapp.class.php 中 setBy 方法
if($this->getId() == ”) 的判断修改为
if($this->getId() == ” && ($conditions == null ||$conditions == ”))
2. class|mod/mailer.class.php中
2.1. FALSE –> false;
2.2. ereg –> preg_match;
2.3. ereg_replace –> preg_replace.
非bug修正,之前测试已经正常的功能不受影响。
更新补充
inc/webapp.class.php, setBy
增加
$v = trim($v);