Project

General

Profile

Actions

Bug #16442

closed

openoffice-files cannot be indexed by class.external_parser.php

Added by Robert Fink over 18 years ago. Updated over 16 years ago.

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

0%

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

Description

There are some bugs in the [case 'sxw':] - section of the readFileContent() - function:

$cmd = $this->app['unzip'].' -p '.$absFile.' content.xml';
This doesn't work with whitespaces in the filename. Same with unzipping meta.xml.

$out must be unset() before the second exec()-call, otherwise $meta_xml will contain the content of both content.xml and meta.xml

SVN Revision 1421 of file /TYPO3core/trunk/typo3/sysext/indexed_search/class.external_parser.php
(issue imported from #M3994)


Files

bug_3994.diff (3.33 KB) bug_3994.diff Administrator Admin, 2006-08-08 14:56
Actions #1

Updated by Michael Stucki over 18 years ago

Sure. Will take care of this.

Actions #2

Updated by Robert Fink over 18 years ago

Michael, I think you have to unset($out) before the second exec()-call. exec() won't do this for you and you end up with the content of both content.xml and meta.xml in $meta_xml

Actions #3

Updated by Michael Stucki over 18 years ago

Oh thanks, that's a very important input! According to php.net you are quite right, and it seems this has been forgotten on several places.

Actions #4

Updated by Robert Fink over 18 years ago

Right ;)

Actions #5

Updated by Michael Stucki about 18 years ago

Fixed in TYPO3 4.0.2 and later.

Actions

Also available in: Atom PDF