From 48d617d9fa3ff61bcba85b90d07effc653faeb8d Mon Sep 17 00:00:00 2001 From: Khaled Date: Sun, 9 Dec 2018 14:11:45 -0700 Subject: Add px to width and height for inline style The image's width and height are always more than 0; so, adding "px" after the width and height is necessary for HTML validation. --- system/helpers/captcha_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/helpers') diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php index b58a19091..f53c90517 100644 --- a/system/helpers/captcha_helper.php +++ b/system/helpers/captcha_helper.php @@ -352,7 +352,7 @@ if ( ! function_exists('create_captcha')) $img_src = 'data:image/png;base64,'.base64_encode($img_src); } - $img = ''.$img_alt.''; + $img = ''.$img_alt.''; ImageDestroy($im); return array('word' => $word, 'time' => $now, 'image' => $img, 'filename' => $img_filename); -- cgit v1.2.3-24-g4f1b