mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-13 18:07:00 +00:00
use wfStreamFile() to output the captcha image; it takes care of removing the extra gzip compression and crap
This commit is contained in:
parent
985ccb6608
commit
c89580f8f4
|
@ -216,8 +216,9 @@ class FancyCaptcha extends SimpleCaptcha {
|
||||||
$file = $this->imagePath( $salt, $hash );
|
$file = $this->imagePath( $salt, $hash );
|
||||||
|
|
||||||
if( file_exists( $file ) ) {
|
if( file_exists( $file ) ) {
|
||||||
header( 'Content-type: image/png' );
|
global $IP;
|
||||||
readfile( $file );
|
require_once "$IP/includes/StreamFile.php";
|
||||||
|
wfStreamFile( $file );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue