Project

General

Profile

Actions

Bug #16428

closed

pageNotFound_handling: TRUE is interpreted as url

Added by Gregor Hermens over 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-08-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

With pageNotFound_handling set to 'TRUE', a nonexistent url is redirected to http://www.example.com/true or http://www.example.comtrue/.
In combination with realurl this can lead to a redirect loop, as http://www.example.com/true is normaly a nonexistent url.

pageNotFound_handling '1' works just fine...

(issue imported from #M3973)


Files

bug_3973.diff (1.48 KB) bug_3973.diff Administrator Admin, 2006-08-03 19:02
Actions #1

Updated by Michael Stucki over 18 years ago

Please test if the attached patch fixes the problem.

Actions #2

Updated by Gregor Hermens over 18 years ago

Works ok, but:

Warning: Wrong parameter count for strncasecmp() in /var/www/u12345001/files/typo3_src-4.0.1/typo3/sysext/cms/tslib/class.tslib_fe.php on line 1277

To get rid of this warning, use:

if (!strncasecmp($code,'TRUE',4)) {$code=TRUE;}

or

if (!strcasecmp($code,'TRUE')) {$code=TRUE;}

Actions #3

Updated by Michael Stucki over 18 years ago

Ooops, sorry. Please replace "strncasecmp" with "strcasecmp".

Actions #4

Updated by Gregor Hermens over 18 years ago

Patch fixes the problem.

Thank you... ;-)

Actions #5

Updated by Michael Stucki over 18 years ago

Fixed in TYPO3 4.0.2 and later.

Actions

Also available in: Atom PDF