Project

General

Profile

Actions

Bug #20701

closed

Wrong pattern modifier in t3lib_htmlmail

Added by Franz Holzinger over 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-06-30
Due date:
% Done:

0%

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

Description

Warning: preg_match() [function.preg-match]: Unknown modifier ')' in /var/www/web36/web/trunk/t3lib/class.t3lib_htmlmail.php on line 1389

public function split_fileref($fileref) {
$info = array();
if (preg_match('/(.*/)(.*)$/', $fileref, $reg)) {

(issue imported from #M11451)


Files

0011451.patch (476 Bytes) 0011451.patch Administrator Admin, 2009-10-07 11:36
Actions #1

Updated by Christian Wessalowski over 15 years ago

I replaced it with the code from T3 V 4.1.7 and it worked
// if (preg_match('/(.*/)(.*)$/', $fileref, $reg)) {
if ( ereg("(.*/)(.*)$",$fileref,$reg) ) {

and further down

// if (preg_match('/(.*)\.([^\.]*$)/', $info['file'], $reg)) {
if ( ereg("(.*)\.([^\.]*$)",$info["file"],$reg) ) {

I konw this is not sophisticated but might help someone else.
cheers chris aka wesa

Actions #2

Updated by Georg Ringer about 15 years ago

is there any news about it?

Actions #3

Updated by Oliver Hader about 15 years ago

Hey, this fix was easy... escaping the "/" delimiter was missing...

Actions #4

Updated by Oliver Hader about 15 years ago

Committed to SVN Trunk (rev. 6108)

Actions

Also available in: Atom PDF