diff --git a/classes/template/TemplateHandler.class.php b/classes/template/TemplateHandler.class.php index 2e2935412..9161dd8b5 100644 --- a/classes/template/TemplateHandler.class.php +++ b/classes/template/TemplateHandler.class.php @@ -449,7 +449,7 @@ class TemplateHandler foreach ($url_list as &$url) { // replace if url is not starting with the pattern $url = preg_replace_callback( - '/^(?!(?:https?|file):\/\/|[\/\{])([^"]+)/is', + '/^(?!(?:https?|file):\/\/|[\/\{])(\S+)/i', array($this, '_replaceRelativePath'), trim($url) );