Merge pull request #5 from simonwelsh/patch-2

BUGFIX: Quote RewriteBase to handle paths with spaces
This commit is contained in:
Will Rossiter 2011-09-15 19:48:38 -07:00
commit 8b08fa2058

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