From e4486ae6eb28e40f863c0e42353d8b5175af79a5 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Sat, 20 Feb 2021 14:36:10 +0800 Subject: [PATCH] * adjust for captcha. --- module/misc/control.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/misc/control.php b/module/misc/control.php index 93cab219cf..49734fcea7 100644 --- a/module/misc/control.php +++ b/module/misc/control.php @@ -227,6 +227,9 @@ class misc extends control */ public function captcha($sessionVar = 'captcha', $uuid = '') { + $obLevel = ob_get_level(); + for($i = 0; $i < $obLevel; $i++) ob_end_clean(); + header('Content-Type: image/jpeg'); $captcha = $this->app->loadClass('captcha'); $this->session->set($sessionVar, $captcha->getPhrase());