Actions
Bug #20701
closedWrong pattern modifier in t3lib_htmlmail
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
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
Updated by Oliver Hader about 15 years ago
Hey, this fix was easy... escaping the "/" delimiter was missing...
Actions