Bug #16428
closedpageNotFound_handling: TRUE is interpreted as url
0%
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
Updated by Michael Stucki over 18 years ago
Please test if the attached patch fixes the problem.
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;}
Updated by Michael Stucki over 18 years ago
Ooops, sorry. Please replace "strncasecmp" with "strcasecmp".
Updated by Gregor Hermens over 18 years ago
Patch fixes the problem.
Thank you... ;-)