Project

General

Profile

Actions

Bug #20479

closed

Export To t3d results in Fatal Error because of wrong RegEx

Added by Susanne Moog about 15 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-05-19
Due date:
% Done:

0%

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

Description

When trying to export page trees to t3d in current trunk you'll get a warning, namely:

Warning: preg_replace() [function.preg-replace]: Unknown modifier '_' in /var/www/eclipse/typo3_src42trunk/typo3/sysext/impexp/app/index.php on line 436
Call Stack

It does in fact work although there is this error, but we should get rid of it anyway.

(issue imported from #M11152)


Files

11152_impExpRegEx.patch (902 Bytes) 11152_impExpRegEx.patch Administrator Admin, 2009-05-19 21:34
1152.simple.patch (899 Bytes) 1152.simple.patch Administrator Admin, 2009-05-20 13:34

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #19728: ereg* is deprecated in PHP 5.3 alpha3ClosedKarsten Dambekalns2008-12-21

Actions
Actions #1

Updated by Peter Niederlag about 15 years ago

seems like a nobrainer but as I've digged into it before checkin of the patch I found out:
- the regex is used to cleanup any user submitted filename from special characters and replace them by a dash '-'
so we definitly don't want either '/' or '.' in the filename.

I am on it, please hang on

Actions #2

Updated by Peter Niederlag about 15 years ago

add updated patch that only lets path valid characters from user submitted filename

Actions #3

Updated by Peter Niederlag about 15 years ago

add updated patch that only lets pass valid characters from user submitted filename

Actions #4

Updated by Oliver Hader about 15 years ago

Committed to SVN Trunk (rev. 5484)

Actions

Also available in: Atom PDF