Skip to content

Commit c402865

Browse files
committed
Merge pull request bcit-ci#3041 from egig/develop
Prepare image url.
2 parents dc134a8 + f039c9f commit c402865

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

system/helpers/captcha_helper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ function create_captcha($data = '', $img_path = '', $img_url = '', $font_path =
215215
// -----------------------------------
216216
// Generate the image
217217
// -----------------------------------
218+
$img_url = rtrim($img_url, '/').'/';
218219
$img_filename = $now.'.jpg';
219220
ImageJPEG($im, $img_path.$img_filename);
220221
$img = '<img src="'.$img_url.$img_filename.'" style="width: '.$img_width.'; height: '.$img_height .'; border: 0;" alt=" " />';

0 commit comments

Comments
 (0)