diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-08-07 14:24:00 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-08-07 14:24:42 +0200 |
commit | 216fdb891a6840269ed0a68fb6194f787af9c2bb (patch) | |
tree | bc68fb63e7ce07fc9c9aec9f8096641c1c6e619a /program/lib/Roundcube/rcube_base_replacer.php | |
parent | 17f11330f8effc12f6aeef1c46dec86bd1c2b492 (diff) |
Fix base URL resolving on attribute values with no quotes (#1489275)
Diffstat (limited to 'program/lib/Roundcube/rcube_base_replacer.php')
-rw-r--r-- | program/lib/Roundcube/rcube_base_replacer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_base_replacer.php b/program/lib/Roundcube/rcube_base_replacer.php index fcd85c2c8..aaaa2028c 100644 --- a/program/lib/Roundcube/rcube_base_replacer.php +++ b/program/lib/Roundcube/rcube_base_replacer.php @@ -44,8 +44,8 @@ class rcube_base_replacer public function replace($body) { return preg_replace_callback(array( - '/(src|background|href)=(["\']?)([^"\'\s]+)(\2|\s|>)/Ui', - '/(url\s*\()(["\']?)([^"\'\)\s]+)(\2)\)/Ui', + '/(src|background|href)=(["\']?)([^"\'\s>]+)(\2|\s|>)/i', + '/(url\s*\()(["\']?)([^"\'\)\s]+)(\2)\)/i', ), array($this, 'callback'), $body); } |