diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-07 06:47:14 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-07 06:47:14 +0000 |
| commit | 8f2870ff8e893fa639d92a3af2d26a4ce812f68a (patch) | |
| tree | eb9c5d4daeda51ea335cc7df8531ce01ea7fa583 /roundcubemail/program | |
| parent | 1b254603aaea0daf282c3b3777fb1c16305aba53 (diff) | |
- Fix RFC2397 handling in wash_style()
git-svn-id: https://svn.roundcube.net/trunk@3721 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/lib/washtml.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/roundcubemail/program/lib/washtml.php b/roundcubemail/program/lib/washtml.php index 923c97ece..fcd28395e 100644 --- a/roundcubemail/program/lib/washtml.php +++ b/roundcubemail/program/lib/washtml.php @@ -155,10 +155,11 @@ class washtml else $this->extlinks = true; } - else if (preg_match('/^data:.+/i', $url)) { // RFC2397 - $value .= ' url('.htmlspecialchars($url, ENT_QUOTES).')'; + else if (preg_match('/^data:.+/i', $match[2])) { // RFC2397 + $value .= ' url('.htmlspecialchars($match[2], ENT_QUOTES).')'; } - } else if ($match[0] != 'url' && $match[0] != 'rbg') //whitelist ? + } + else if ($match[0] != 'url' && $match[0] != 'rbg') //whitelist ? $value .= ' ' . $match[0]; $str = substr($str, strlen($match[0])); } |
