files with spaces

cwells - March 10, 2008 - 14:25
Project:Swish-E Indexer
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

We have lots of PDF files with spaces in their names (linux hosting environment). The shell command chokes when there's a space in the file name, because the filename is not escaped with escapeshellarg() in _swish_do_text_extract (swish.integration.inc)

AttachmentSize
swish.integration.inc_.patch1.24 KB

#1

juerg - March 23, 2008 - 11:10

I am having the same problem you mentioned when the file name contains spaces. Your patch seems to have already been applied in the current version 5.x-1.1, but nevertheless I am still getting the following error message if the search result contains at least one file with spaces in the name:

* warning: implode(): Bad arguments. in ....../html/modules/node/node.module on line 525.
* user warning: in .....drupal/html/includes/database.mysql.inc on line 172.

Juerg

 
 

Drupal is a registered trademark of Dries Buytaert.