multilanguage redirect not working in Firefox 1.0.4

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
ACmonKey
Posts: 9
Joined: Mon 21. Mar 2005, 12:18

multilanguage redirect not working in Firefox 1.0.4

Post by ACmonKey »

Hello everybody,

I have following multilanguage redirection code working in all tested browsers except Firefox 1.0.4:

Code: Select all

[PHP] if(!$GLOBALS['aktion'][0]) { switch( strtolower( substr( $_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 4 ) ) ) { case 'de': header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?german'); exit(); case 'es': header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?spanish'); exit(); case 'fr': header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?french'); exit(); default: header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?english'); exit(); break;} } [/PHP]
It worked perfectly with Firefox 1.0.3 and IE 6.

I'm really puzzled because i only get a blank page and no source code.
If I enter the URL directly such as http://www.website.com/index.php?german it works perfectly again, so it seems to be a problem in the browser FF 1.0.4 interpreting the above code.

Any ideas ?
Thank you in advance
As i usually forget to put this in my support questions i'll use the signature for something usefull.
Currently using Version 1.2.1 DEV
Post Reply