From f2e94665f397d7bb1fa767c008de54485df218fe Mon Sep 17 00:00:00 2001 From: alecpl Date: Sun, 30 Jan 2011 14:52:37 +0000 Subject: - Clarify regexp (#1487722) --- program/steps/addressbook/show.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/steps/addressbook') 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', -- cgit v1.2.3