summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-05-08 22:25:08 +0200
committerAndrey Andreev <narf@devilix.net>2014-05-08 22:25:08 +0200
commitc402865740a077bffb4eebd07335b64ca006c48a (patch)
tree6e682e6ba7b15b1c103e1622ed7da47940bbfa48 /system
parentdc134a8a0e900d0e369ba35749e9530028832cbb (diff)
parentf039c9f901ae917579f6510c5e9c6b29d9a92959 (diff)
Merge pull request #3041 from egig/develop
Prepare image url.
Diffstat (limited to 'system')
-rw-r--r--system/helpers/captcha_helper.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php
index 78eac4be0..74ab24ffb 100644
--- a/system/helpers/captcha_helper.php
+++ b/system/helpers/captcha_helper.php
@@ -215,6 +215,7 @@ if ( ! function_exists('create_captcha'))
// -----------------------------------
// Generate the image
// -----------------------------------
+ $img_url = rtrim($img_url, '/').'/';
$img_filename = $now.'.jpg';
ImageJPEG($im, $img_path.$img_filename);
$img = '<img src="'.$img_url.$img_filename.'" style="width: '.$img_width.'; height: '.$img_height .'; border: 0;" alt=" " />';