diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-01-30 14:52:37 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-01-30 14:52:37 +0000 |
| commit | 964a2f0498fa498ed2b4726b988e48d3edaf79c7 (patch) | |
| tree | a1a68d6e5cecc9aef5df6a2f0601fc8cae77a619 /roundcubemail/program/steps | |
| parent | 9ea1b334066e0da305004959c892e308f05ef276 (diff) | |
- Clarify regexp (#1487722)
git-svn-id: https://svn.roundcube.net/trunk@4470 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/addressbook/show.inc | 2 |
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', |
