summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorUekawa <wed20091219+github@gmail.com>2017-09-29 08:10:41 +0200
committerUekawa <wed20091219+github@gmail.com>2017-09-29 08:10:41 +0200
commit3e59801223f1393507d81e9f394c4f5ae33e1c04 (patch)
treeb72d9ff93fd5e5556fa888c06c64459fe0414e92 /system/helpers
parent1db998348e8850db79c4afa2d057fa31fb6bc12c (diff)
Fix auto_link
Diffstat (limited to 'system/helpers')
-rwxr-xr-x[-rw-r--r--]system/helpers/url_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php
index 99e82ef9f..421b3bad5 100644..100755
--- a/system/helpers/url_helper.php
+++ b/system/helpers/url_helper.php
@@ -393,7 +393,7 @@ if ( ! function_exists('auto_link'))
function auto_link($str, $type = 'both', $popup = FALSE)
{
// Find and replace any URLs.
- if ($type !== 'email' && preg_match_all('#(\w*://|www\.)[^\s()<>;]+\w#i', $str, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER))
+ if ($type !== 'email' && preg_match_all('#(\w*://|www\.)[^\s()<>;]+\w/?#i', $str, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER))
{
// Set our target HTML if using popup links.
$target = ($popup) ? ' target="_blank"' : '';