Skip to content

Commit b40a7fb

Browse files
committed
更新核心框架
1 parent 4c50698 commit b40a7fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wwwroot/ThinkPHP/Library/Think/Model.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,9 @@ protected function _parseOptions($options=array()) {
656656
if(in_array($key,$fields,true)){
657657
if(is_scalar($val)) {
658658
$this->_parseType($options['where'],$key);
659-
}
659+
}elseif(is_array($val) && isset($_REQUEST[$key]) && is_array($_REQUEST[$key])){
660+
$options['where'][$key] = (string)$val;
661+
}
660662
}elseif(!is_numeric($key) && '_' != substr($key,0,1) && false === strpos($key,'.') && false === strpos($key,'(') && false === strpos($key,'|') && false === strpos($key,'&')){
661663
if(!empty($this->options['strict'])){
662664
E(L('_ERROR_QUERY_EXPRESS_').':['.$key.'=>'.$val.']');

0 commit comments

Comments
 (0)