From 7b3ae03223f098da66a3c11777d71812a6ea3c16 Mon Sep 17 00:00:00 2001 From: Paul Barrett Date: Tue, 1 Dec 2009 12:34:29 +0200 Subject: [PATCH] Backslashes replaced with forward in Lucene Properties file --- setup/wizard/lib/services/windowsLucene.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup/wizard/lib/services/windowsLucene.php b/setup/wizard/lib/services/windowsLucene.php index f89707a..a36c4e4 100644 --- a/setup/wizard/lib/services/windowsLucene.php +++ b/setup/wizard/lib/services/windowsLucene.php @@ -491,9 +491,8 @@ class windowsLucene extends windowsService { $content .= "server.deny=\n"; $conf = $this->util->getDataFromSession('configuration'); $varDirectory = $conf['paths']['varDirectory']['path']; - $content .= "indexer.directory=$varDirectory" . DS . "indexes\n"; // on Windows the path needs to be escaped or the Java Lucene code cannot understand it - $content .= "indexer.directory=" . str_replace('\\', '\\\\', $varDirectory . DS . "indexes") . "\n"; + $content .= "indexer.directory=" . str_replace('\\', '/', $varDirectory . DS . "indexes") . "\n"; fwrite($fp, $content); fclose($fp); chmod($fileLoc, 0644); -- libgit2 0.21.4