summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoregig <egigundari@gmail.com>2014-05-08 05:34:35 +0200
committeregig <egigundari@gmail.com>2014-05-08 05:34:35 +0200
commit225f53b7da4f7c4154c21fd8d11659d4fd8277d5 (patch)
treee273ff84e5ad8dbd36ef971317678ded2107edaa
parent51593f49cda71bdf8400ba6555a9e1598ff21c7c (diff)
Prepare image url.
-rw-r--r--system/helpers/captcha_helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php
index 78eac4be0..131879c9f 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=" " />';
@@ -225,4 +226,4 @@ if ( ! function_exists('create_captcha'))
}
/* End of file captcha_helper.php */
-/* Location: ./system/helpers/captcha_helper.php */ \ No newline at end of file
+/* Location: ./system/helpers/captcha_helper.php */