Bug #23321
closedt3lib_div::sanitizeLocalUrl() leads to fatal error on PHP4 systems
0%
Description
After updating my TYPO3 Installations from 4.1.13 to 4.1.14 I was hit by the bug #23287
So I applied the patch 0015263_v2.patch. After this I still can't clear the cache (white Menu Frame)
and I get this PHP Error:
[Fri Jul 30 17:55:06 2010] [error] [client xxx.xxx.xx.xx] PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: support for \\P, \\p, and \\X has not been compiled at offset 3 in /usr/lib/typo3/typo3_src-4.1.14/t3lib/class.t3lib_div.php on line 3612, referer: http://www.domain.tld/typo3/alt_menu.php.
System Informations
PHP Version: 5.1.2
OS: OpenSuSE 10.1
Apache: 2.2.3
MySQL: 5.0.26
(issue imported from #M15311)
Files
Updated by Steffen Gebert over 14 years ago
Can you check the current state in SVN, please?
https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1/
Updated by Chris topher over 14 years ago
If Nico took a clean installation of TYPO3 4.1.14 and then applied the file "15263_v2.patch", he has exactly what is in SVN currently.
Updated by Oliver Hader over 14 years ago
Can somebody please check whether unicode character support was built into PHP 4.3 and/or PHP 5.1?
Updated by Steffen Gebert over 14 years ago
Jigal just posted this link: http://www.php.net/manual/en/regexp.reference.unicode.php
Updated by Helmut Hummel over 14 years ago
can you pleas test the applied patch?
Updated by Oliver Hader over 14 years ago
- just did not apply the whitelist pattern to the host part (will be evaluated later if it is set)
- changed the whitelist pattern of function sanitizeBackendUrl() to be the same as in sanitizeLocalUrl()
Nico, please test the v2 patch. Thanks!
Updated by Sven Juergens over 14 years ago
same issue here, patch 0015311_v2.patch works fine
Updated by Tim over 14 years ago
in 4.1.4 it works fine, but in 4.1.3 didnt work it
Updated by Tim over 14 years ago
patch on 4.1.4
---------------------------------------------------------------------
0015311_v2.patch
---------------------------------------------------------------------
patching file t3lib/class.t3lib_div.php
Hunk #1 succeeded at 3567 (offset 11 lines).
Hunk #2 FAILED at 3590.
--------------------------------------------------------------------
---------------------------------------------------------------------
0015263_v2.patch
---------------------------------------------------------------------
patching file t3lib/class.t3lib_div.php
Updated by Oliver Hader over 14 years ago
Tim, please try with the latest version of the branch: TYPO3 4.1.14
Updated by Oliver Hader over 14 years ago
The attached v3 patch implements a suggestion by Jigal to support umlauts again in the path segment, like e.g. http://myhost.com/äöü/typo3/