diff --git a/search2/indexing/extractorCore.inc.php b/search2/indexing/extractorCore.inc.php index f7e527c..161142b 100755 --- a/search2/indexing/extractorCore.inc.php +++ b/search2/indexing/extractorCore.inc.php @@ -351,12 +351,12 @@ abstract class ExternalDocumentExtractor extends DocumentExtractor { if (OS_WINDOWS) { - + $WshShell = new COM("WScript.Shell"); $res = $WshShell->Run($cmd, 0, true); - - + + return $res == 0; } else @@ -469,7 +469,8 @@ abstract class ApplicationExtractor extends ExternalDocumentExtractor { $sources = array('{source}','{target}'); $target = array($this->sourcefile, $this->targetfile); - $cmdline = $this->application . ' ' . str_replace($sources,$target, $this->params); + $escape = OS_WINDOWS?'"':'\''; + $cmdline = $escape . $this->application . $escape . ' ' . str_replace($sources,$target, $this->params); return $cmdline; }