issue 746: Fixed a bug for rewriting image URL

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9932 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-12-09 04:33:54 +00:00
parent c26a638822
commit 59370973bd
2 changed files with 6 additions and 1 deletions

View file

@ -301,7 +301,7 @@ class TemplateHandler {
$src = str_replace('/./', '/', $src);
// for backward compatibility
$src = preg_replace('@((?:[\w-]+/)+)\1@', '\1', $src);
$src = preg_replace('@/((?:[\w-]+/)+)\1@', '/\1', $src);
while(($tmp=preg_replace('@[^/]+/\.\./@', '', $src))!==$src) $src = $tmp;