summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-01-30 14:52:37 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-01-30 14:52:37 +0000
commit964a2f0498fa498ed2b4726b988e48d3edaf79c7 (patch)
treea1a68d6e5cecc9aef5df6a2f0601fc8cae77a619 /roundcubemail/program
parent9ea1b334066e0da305004959c892e308f05ef276 (diff)
- Clarify regexp (#1487722)
git-svn-id: https://svn.roundcube.net/trunk@4470 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/addressbook/show.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/addressbook/show.inc b/roundcubemail/program/steps/addressbook/show.inc
index 4823707b2..49953fd25 100644
--- a/roundcubemail/program/steps/addressbook/show.inc
+++ b/roundcubemail/program/steps/addressbook/show.inc
@@ -147,7 +147,7 @@ function rcmail_render_email_value($email, $col)
function rcmail_render_url_value($url, $col)
{
- $prefix = preg_match('![htfps]+://!', $url) ? '' : 'http://';
+ $prefix = preg_match('!^(http|ftp)s?://!', $url) ? '' : 'http://';
return html::a(array(
'href' => $prefix . $url,
'target' => '_blank',