summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-01-30 14:52:37 +0000
committeralecpl <alec@alec.pl>2011-01-30 14:52:37 +0000
commitf2e94665f397d7bb1fa767c008de54485df218fe (patch)
tree438ba190326ffe12b92e733aa22c6d25210a008a
parentd755eade08a562c34669280f855f7f0178081f61 (diff)
- Clarify regexp (#1487722)
-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',