|
@@ -103,10 +103,13 @@ class Secret extends Component
|
|
|
if ($verb == 'GET' && $md5 != '')
|
|
|
return false;
|
|
|
|
|
|
- if (!is_array($post) || !$post)
|
|
|
+ if (!is_array($post))
|
|
|
return true;
|
|
|
|
|
|
$s = static::kSortParams($post);
|
|
|
+ if (!$s)
|
|
|
+ return true;
|
|
|
+
|
|
|
$this->_contentMd5 = md5(json_encode($s));
|
|
|
if ( strtolower($md5) != strtolower($this->_contentMd5))
|
|
|
return false;
|