Aleksander Machniak
2014-01-24 c0dda0556c5e880f4a180cc1c13bb54c61b01c5a
Allow single quote in style attribute values.

E.g. "font-family: 'Tahoma'" should not be removed.
1 files modified
2 ■■■ changed files
program/lib/Roundcube/rcube_washtml.php 2 ●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_washtml.php
@@ -184,7 +184,7 @@
                        '|rgb\(\s*[0-9]+\s*,\s*[0-9]+\s*,\s*[0-9]+\s*\)'.
                        '|-?[0-9.]+\s*(em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)?'.
                        '|#[0-9a-f]{3,6}'.
                        '|[a-z0-9", -]+'.
                        '|[a-z0-9"\', -]+'.
                        ')\s*/i', $str, $match)
                ) {
                    if ($match[2]) {