ToastFreeware
/
toast
/
cookiecaptcha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
985ccb6
)
use wfStreamFile() to output the captcha image; it takes care of removing the extra...
author
Brion Vibber
<brion@users.mediawiki.org>
Tue, 20 Feb 2007 08:30:14 +0000
(08:30 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Tue, 20 Feb 2007 08:30:14 +0000
(08:30 +0000)
FancyCaptcha.php
patch
|
blob
|
history
diff --git
a/FancyCaptcha.php
b/FancyCaptcha.php
index 21931a85a0d04b63360862da63f7fe9c7e13f408..63273a901754557aec82fa081423aed69cdd79c9 100644
(file)
--- a/
FancyCaptcha.php
+++ b/
FancyCaptcha.php
@@
-216,8
+216,9
@@
class FancyCaptcha extends SimpleCaptcha {
$file = $this->imagePath( $salt, $hash );
if( file_exists( $file ) ) {
- header( 'Content-type: image/png' );
- readfile( $file );
+ global $IP;
+ require_once "$IP/includes/StreamFile.php";
+ wfStreamFile( $file );
return true;
}
}