diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-22 10:32:22 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-22 10:32:22 +0000 |
| commit | 07b979c6ea4c9f769e2d4a1a164698a6366cad84 (patch) | |
| tree | 23cd613d85038c90db070678d20787512169042f /roundcubemail/program | |
| parent | 802c1fa128315c0bb7dc8ec26b47b506bfe70d7d (diff) | |
Accept absolute urls without protocol
git-svn-id: https://svn.roundcube.net/trunk@5640 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/lib/washtml.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/lib/washtml.php b/roundcubemail/program/lib/washtml.php index f8c3251ad..04a65c7a1 100644 --- a/roundcubemail/program/lib/washtml.php +++ b/roundcubemail/program/lib/washtml.php @@ -199,7 +199,7 @@ class washtml $key = strtolower($key); $value = $node->getAttribute($key); if (isset($this->_html_attribs[$key]) || - ($key == 'href' && preg_match('/^(http:|https:|ftp:|mailto:|#).+/i', $value))) + ($key == 'href' && preg_match('!^(http:|https:|ftp:|mailto:|//|#).+!i', $value))) $t .= ' ' . $key . '="' . htmlspecialchars($value, ENT_QUOTES) . '"'; else if ($key == 'style' && ($style = $this->wash_style($value))) { $quot = strpos($style, '"') !== false ? "'" : '"'; |
