diff --git a/ConfirmEdit_body.php b/ConfirmEdit_body.php index e905640cf..0926cacd3 100644 --- a/ConfirmEdit_body.php +++ b/ConfirmEdit_body.php @@ -83,6 +83,7 @@ class SimpleCaptcha { $captcha = $this->getCaptcha(); $index = $this->storeCaptcha( $captcha ); $resultArr['captcha']['type'] = 'simple'; + $resultArr['captcha']['mime'] = 'text/plain'; $resultArr['captcha']['id'] = $index; $resultArr['captcha']['question'] = $captcha['question']; } diff --git a/FancyCaptcha.class.php b/FancyCaptcha.class.php index b560e712e..cf723d763 100644 --- a/FancyCaptcha.class.php +++ b/FancyCaptcha.class.php @@ -33,6 +33,7 @@ class FancyCaptcha extends SimpleCaptcha { $index = $this->storeCaptcha( $info ); $title = Title::makeTitle( NS_SPECIAL, 'Captcha/image' ); $resultArr['captcha']['type'] = 'image'; + $resultArr['captcha']['mime'] = 'image/png'; $resultArr['captcha']['id'] = $index; $resultArr['captcha']['url'] = $title->getLocalUrl( 'wpCaptchaId=' . urlencode( $index ) ); } diff --git a/MathCaptcha.class.php b/MathCaptcha.class.php index db506a335..66567e035 100644 --- a/MathCaptcha.class.php +++ b/MathCaptcha.class.php @@ -11,6 +11,7 @@ class MathCaptcha extends SimpleCaptcha { list( $sum, $answer ) = $this->pickSum(); $index = $this->storeCaptcha( array('answer' => $answer ) ); $resultArr['captcha']['type'] = 'math'; + $resultArr['captcha']['mime'] = 'text/tex'; $resultArr['captcha']['id'] = $index; $resultArr['captcha']['question'] = $sum; }