summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/steps/addressbook/show.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/addressbook/show.inc b/program/steps/addressbook/show.inc
index 4823707b2..49953fd25 100644
--- a/program/steps/addressbook/show.inc
+++ b/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',