diff --git a/cake/libs/view/helpers/text.php b/cake/libs/view/helpers/text.php index 44f988976..e1a4eb8f4 100644 --- a/cake/libs/view/helpers/text.php +++ b/cake/libs/view/helpers/text.php @@ -106,10 +106,10 @@ class TextHelper extends AppHelper { } $options .= ')'; - $text=preg_replace_callback('#((?:http|https|ftp|nntp)://[^ <]+)#', create_function('$matches', + $text = preg_replace_callback('#(?)((?:http|https|ftp|nntp)://[^ <]+)#i', create_function('$matches', '$Html = new HtmlHelper(); $Html->tags = $Html->loadConfig(); return $Html->link($matches[0], $matches[0],' . $options . ');'), $text); - return preg_replace_callback('#(?)(?tags = $Html->loadConfig(); return $Html->link($matches[0], "http://" . low($matches[0]),' . $options . ');'), $text); } /**