Skip to content

Commit 292ad89

Browse files
authored
[ci skip] Merge pull request bcit-ci#5652 from Khuthaily/patch-1
Add px to width and height inline style output of create_captcha()
2 parents 90ebf3b + 48d617d commit 292ad89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/helpers/captcha_helper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ function create_captcha($data = '', $img_path = '', $img_url = '', $font_path =
352352
$img_src = 'data:image/png;base64,'.base64_encode($img_src);
353353
}
354354

355-
$img = '<img '.($img_id === '' ? '' : 'id="'.$img_id.'"').' src="'.$img_src.'" style="width: '.$img_width.'; height: '.$img_height .'; border: 0;" alt="'.$img_alt.'" />';
355+
$img = '<img '.($img_id === '' ? '' : 'id="'.$img_id.'"').' src="'.$img_src.'" style="width: '.$img_width.'px; height: '.$img_height .'px; border: 0;" alt="'.$img_alt.'" />';
356356
ImageDestroy($im);
357357

358358
return array('word' => $word, 'time' => $now, 'image' => $img, 'filename' => $img_filename);

0 commit comments

Comments
 (0)