Skip to content
Snippets Groups Projects
Commit f025f436 authored by Fabiano Sant'Ana's avatar Fabiano Sant'Ana Committed by soxofaan
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment