Commit 049eea84420a6876c2777bde1b83a2b2c7681ec6
1 parent
1b427da7
KTS-2912
"Document Indexing Diagnostics shows that there is a problem indixing a PDF file" Updated. Fixed the windows shell script execution. Commited By: Jonathan Byrne Reviewed By: Jalaloedien Abrahams git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8034 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
0 deletions
search2/indexing/extractorCore.inc.php
| ... | ... | @@ -371,6 +371,9 @@ abstract class ExternalDocumentExtractor extends DocumentExtractor |
| 371 | 371 | |
| 372 | 372 | $script = "rem This is an auto generated file. \n"; |
| 373 | 373 | $script .= $cmd . ' 2> "' . $script_out . "\"\r\n"; |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 374 | 377 | } |
| 375 | 378 | else |
| 376 | 379 | { |
| ... | ... | @@ -392,6 +395,7 @@ abstract class ExternalDocumentExtractor extends DocumentExtractor |
| 392 | 395 | // execute the script file |
| 393 | 396 | if (OS_WINDOWS) |
| 394 | 397 | { |
| 398 | + $script_name = "\"$script_name\""; | |
| 395 | 399 | $WshShell = new COM("WScript.Shell"); |
| 396 | 400 | $res = $WshShell->Run($script_name, 0, true); |
| 397 | 401 | } | ... | ... |