Bug #23321
closed
t3lib_div::sanitizeLocalUrl() leads to fatal error on PHP4 systems
Added by Nico Thomaier over 14 years ago.
Updated over 14 years ago.
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
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.
Can somebody please check whether unicode character support was built into PHP 4.3 and/or PHP 5.1?
can you pleas test the applied patch?
I slightly modified Helmut's patch
- 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!
same issue here, patch 0015311_v2.patch works fine
in 4.1.4 it works fine, but in 4.1.3 didnt work it
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
Tim, please try with the latest version of the branch: TYPO3 4.1.14
Committed to TYPO3_4-1 (rev. 8472)
Also available in: Atom
PDF