# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbcaptcha/cb.captcha.php +++ components/com_comprofiler/plugin/user/plug_cbcaptcha/cb.captcha.php @@ -141,10 +141,7 @@ if ( $this->params->get( 'captchaUrlMode', 1 ) == 1 ) { $imageUrl = $_CB_framework->getCfg( 'live_site' ) . '/components/com_comprofiler/plugin/user/plug_cbcaptcha/captchaindex.php?captchaurlmode=image&captchasid=' . $this->_sessionId(); } else { - $imageUrl = $_CB_framework->getCfg( 'live_site' ) - . '/' - . str_replace( array( 'index.php?', 'plugin=cbcaptcha'), array( 'index2.php?', 'plugin=cb.captcha' ), $this->_getAbsURLwithParam( array( 'urlmode' => 'image', 'sid' => $this->_sessionId(), 'Itemid' => 0 ), 'pluginclass', false ) ) - . '&no_html=1&format=raw'; + $imageUrl = str_replace( 'cbcaptcha', 'cb.captcha', $this->_getAbsURLwithParam( array( 'urlmode' => 'image', 'sid' => $this->_sessionId(), 'Itemid' => 0 ), 'pluginclass', true, null, 'raw' ) ); } $width = $this->params->get('captchaWidth', '95'); $height = $this->params->get('captchaHeight', '30'); @@ -168,10 +165,7 @@ if ( $this->params->get( 'captchaUrlMode', 1 ) == 1 ) { $audioURL = $_CB_framework->getCfg( 'live_site' ) . '/components/com_comprofiler/plugin/user/plug_cbcaptcha/captchaindex.php?captchaurlmode=audio&captchasid=' . $this->_sessionId(); } else { - $audioURL = $_CB_framework->getCfg( 'live_site' ) - . '/' - . str_replace( array( 'index.php?', 'plugin=cbcaptcha'), array( 'index2.php?', 'plugin=cb.captcha' ), $this->_getAbsURLwithParam( array( 'urlmode' => 'audio', 'sid' => $this->_sessionId(), 'Itemid' => 0 ), 'pluginclass', false ) ) - . '&no_html=1&format=raw'; + $audioURL = str_replace( 'cbcaptcha', 'cb.captcha', $this->_getAbsURLwithParam( array( 'urlmode' => 'audio', 'sid' => $this->_sessionId(), 'Itemid' => 0 ), 'pluginclass', true, null, 'raw' ) ); } $captchavieweros = $this->_CheckUserOS();