Project

General

Profile

Actions

Bug #14804

closed

Indexing external documents fails if there are spaces in the path

Added by Johannes Bornhold almost 19 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2005-06-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The command line parameters are not enclose in quotes and therefor the parsers get confused when there are spaces in the path.

A simple solution which worked for me was adding double quotes around the file name. This worked unter linux and under windows. My modified version of the external_parser is attached.

(issue imported from #M1180)


Files

class.external_parser.php (22.3 KB) class.external_parser.php Administrator Admin, 2005-06-08 15:09
class.external_parser.php.escapeshellarg (22.4 KB) class.external_parser.php.escapeshellarg Administrator Admin, 2006-01-09 10:41

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #16066: Language pack installation cannot handle spaces in filenamesClosedKarsten Dambekalns2006-04-19

Actions
Actions #1

Updated by Johannes Bornhold almost 19 years ago

My modifications of the attached file are marked with comments which include the pattern "JOH:"

Actions #2

Updated by Christian J¼rges over 18 years ago

imho it would better to use php function escapeshellarg() instead.
example:
$cmd = $this->app['pdfinfo'].' '.escapeshellarg($absFile);

Actions #3

Updated by Michael Stucki over 17 years ago

This was fixed almost one year ago! Please check if the problem stil exists in TYPO3 4.0, otherwise please reopen.

Actions

Also available in: Atom PDF