Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

Commit 1d9aa58

Browse files
committed
模型类_parseOptions中的检测机制调整回原来 避免使用同名数组表单数据的时候被转换
1 parent 5f95d62 commit 1d9aa58

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ThinkPHP/Library/Think/Model.class.php

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

0 commit comments

Comments
 (0)