diff --git a/symphony/lib/toolkit/class.frontendpage.php b/symphony/lib/toolkit/class.frontendpage.php
index <HASH>..<HASH> 100644
--- a/symphony/lib/toolkit/class.frontendpage.php
+++ b/symphony/lib/toolkit/class.frontendpage.php
@@ -537,7 +537,7 @@ class FrontendPage extends XSLTPage
 
         $this->setXML($xml);
         $xsl = '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">' .
-               '    <xsl:import href="' . str_replace('\\', '/', str_replace(' ', '%20', $page['filelocation'])) . '"/>' .
+               '    <xsl:import href="' . str_replace(array('\\', ' '), array('/', '%20'), $page['filelocation']) . '"/>' .
                '</xsl:stylesheet>';
 
         $this->setXSL($xsl, false);
Simplified replace of backslashes and whitespace in xsl pathes