浏览代码

Cast ini values to bool upon checking. Resolves ZF-7017

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16077 44c647ce-9c0f-0410-b52a-842ac1e357ba
cogo 16 年之前
父节点
当前提交
69fe4d6eb5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      library/Zend/Service/ReCaptcha.php

+ 2 - 2
library/Zend/Service/ReCaptcha.php

@@ -387,14 +387,14 @@ class Zend_Service_ReCaptcha extends Zend_Service_Abstract
 
         $host = self::API_SERVER;
 
-        if ($this->_params['ssl'] === true) {
+        if ((bool) $this->_params['ssl'] === true) {
             $host = self::API_SECURE_SERVER;
         }
 
         $htmlBreak = '<br>';
         $htmlInputClosing = '>';
 
-        if ($this->_params['xhtml'] === true) {
+        if ((bool) $this->_params['xhtml'] === true) {
             $htmlBreak = '<br />';
             $htmlInputClosing = '/>';
         }