From f71bf7d80413123046a6d0f2140d399df255e69e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 01:43:00 +0000 Subject: [PATCH] BUGFIX: Fixed regexp in anchor link rewriting (from r92077) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92457 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/SSViewer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/SSViewer.php b/core/SSViewer.php index 8639b6ba5..8ad716bba 100755 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -381,7 +381,7 @@ class SSViewer { } else { $thisURLRelativeToBase = Director::makeRelative(Director::absoluteURL($_SERVER['REQUEST_URI'])); } - $output = preg_replace('/(+]href *= *)"#/i', '\\1"' . $thisURLRelativeToBase . '#', $output); + $output = preg_replace('/(]+href *= *)"#/i', '\\1"' . $thisURLRelativeToBase . '#', $output); } }