Project

General

Profile

Actions

Bug #23321

closed

t3lib_div::sanitizeLocalUrl() leads to fatal error on PHP4 systems

Added by Nico Thomaier almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
-
Start date:
2010-07-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

15311.diff (1.05 KB) 15311.diff Administrator Admin, 2010-08-01 18:21
0015311_v2.patch (1.19 KB) 0015311_v2.patch Administrator Admin, 2010-08-01 18:36
0015311_v3.patch (1.48 KB) 0015311_v3.patch Administrator Admin, 2010-08-03 16:14

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #23287: Clearing caches in backend only displays empty frameClosedOliver Hader2010-07-28

Actions
Related to TYPO3 Core - Bug #23862: TYPO3 4.1.15: Incomplete whitelistPattern in function sanitizeLocalUrl (class.t3lib_div.php)Closed2010-10-28

Actions
Actions #1

Updated by Steffen Gebert almost 14 years ago

Can you check the current state in SVN, please?
https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1/

Actions #2

Updated by Chris topher almost 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.

Actions #3

Updated by Oliver Hader almost 14 years ago

Can somebody please check whether unicode character support was built into PHP 4.3 and/or PHP 5.1?

Actions #5

Updated by Helmut Hummel almost 14 years ago

can you pleas test the applied patch?

Actions #6

Updated by Oliver Hader almost 14 years ago

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!

Actions #7

Updated by Sven Juergens almost 14 years ago

same issue here, patch 0015311_v2.patch works fine

Actions #8

Updated by Tim almost 14 years ago

in 4.1.4 it works fine, but in 4.1.3 didnt work it

Actions #9

Updated by Tim almost 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

Actions #10

Updated by Oliver Hader almost 14 years ago

Tim, please try with the latest version of the branch: TYPO3 4.1.14

Actions #11

Updated by Oliver Hader almost 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/

Actions #12

Updated by Oliver Hader almost 14 years ago

Committed to TYPO3_4-1 (rev. 8472)

Actions #13

Updated by Ingo Renner over 13 years ago

released in
4.1.15

Actions

Also available in: Atom PDF