diff options
author | Khaled <khaledenglish@yahoo.com> | 2018-12-09 22:11:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-09 22:11:45 +0100 |
commit | 48d617d9fa3ff61bcba85b90d07effc653faeb8d (patch) | |
tree | f5eaf23f2058016d5c613ee20e53b15af04cf6d4 /system | |
parent | 37d9b303163cd1256743d06750c1c742bd464823 (diff) |
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.
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/captcha_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 '.($img_id === '' ? '' : 'id="'.$img_id.'"').' src="'.$img_src.'" style="width: '.$img_width.'; height: '.$img_height .'; border: 0;" alt="'.$img_alt.'" />'; + $img = '<img '.($img_id === '' ? '' : 'id="'.$img_id.'"').' src="'.$img_src.'" style="width: '.$img_width.'px; height: '.$img_height .'px; border: 0;" alt="'.$img_alt.'" />'; ImageDestroy($im); return array('word' => $word, 'time' => $now, 'image' => $img, 'filename' => $img_filename); |