For OC 1.5. * Go to
System \ Library \ captcha.php
Find function getCode()
Replace this function with
function getCode(){ $code= ob_get_contents(); $code= str_replace(array("\n", "\r", "\t", " "), "", $this->code); ob_end_clean() return $code; }
Now for OC 2.1. * Switch to
Directory / controller / CAPTCHA, / base CAPTCHA,
Find $this->session->data['captcha'] = substr(sha1(mt_rand()), 17, 6);
enter the code below after that
$code= ob_get_contents(); $code= str_replace(array("\n", "\r", "\t", " "), "",$this->session->data['captcha']); ob_end_clean(); $this->session->data['captcha'] = $code;
And for OC 2.3. * Switch to
Directory / controller / Extension / CAPTCHA, / base captcha.php Locate $this->session->data['captcha'] = substr(sha1(mt_rand()), 17, 6);
Put below code after this
$code= ob_get_contents(); $code= str_replace(array("\n", "\r", "\t", " "), "",$this->session->data['captcha']); ob_end_clean(); $this->session->data['captcha'] = $code;
Useful!