From 869b31cb77d2d2eff55e298df0ed99734aa227e2 Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 5 Jan 2012 09:51:41 +0000 Subject: - Fix bug in handling of base href and inline content (#1488290) git-svn-id: https://svn.roundcube.net/trunk@5713 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/func.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'roundcubemail/program/steps') diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 3784456c7..f791f7033 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -1110,15 +1110,13 @@ function rcmail_resolve_base($body) // check for if (preg_match('!()/Ui', array($replacer, 'callback'), $body); - $body = preg_replace_callback('/(url\s*\()(["\']?)([^"\'\)\s]+)(\2)\)/Ui', array($replacer, 'callback'), $body); + $body = $replacer->replace($body); } return $body; } + /** * modify a HTML message that it can be displayed inside a HTML page */ -- cgit v1.2.3