Quote RewriteBase to handle paths with spaces

This commit is contained in:
simonwelsh 2011-09-14 19:46:49 +12:00
parent 3b9c569ed1
commit c1712dc992

View File

@ -1177,7 +1177,7 @@ HTML;
if(defined('DIRECTORY_SEPARATOR')) $base = str_replace(DIRECTORY_SEPARATOR, '/', $base);
else $base = str_replace("\\", '/', $base);
if($base != '.') $baseClause = "RewriteBase $base\n";
if($base != '.') $baseClause = "RewriteBase '$base'\n";
else $baseClause = "";
$rewrite = <<<TEXT