summaryrefslogtreecommitdiffstats
path: root/system/helpers/captcha_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2018-12-17 09:04:15 +0100
committerGitHub <noreply@github.com>2018-12-17 09:04:15 +0100
commit292ad891948676ecc97ab7636e99dbb5aab1b0e4 (patch)
tree346598daa2ab573f50177feb4dd14fc2d791625d /system/helpers/captcha_helper.php
parent90ebf3b7d243cbaed06c58b0fbdb2c07d8a631e9 (diff)
parent48d617d9fa3ff61bcba85b90d07effc653faeb8d (diff)
[ci skip] Merge pull request #5652 from Khuthaily/patch-1
Add px to width and height inline style output of create_captcha()
Diffstat (limited to 'system/helpers/captcha_helper.php')
-rw-r--r--system/helpers/captcha_helper.php2
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);