Commit f025f436 authored by wundo's avatar wundo Committed by soxofaan

Issue #976436 by matheusgorino, soxofaan: Adds an ob_end_clean to prevent the...

Issue #976436 by matheusgorino, soxofaan: Adds an ob_end_clean to prevent the output image from being corrupted.
parent f56d53ec
......@@ -12,6 +12,11 @@
* Menu callback function that generates the CAPTCHA image.
*/
function image_captcha_image($captcha_sid=NULL) {
// If output buffering is on: discard current content and disable further buffering
if (ob_get_level()) {
ob_end_clean();
}
if (!$captcha_sid) {
exit();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment