function redirect broken in FireFox

function redirect broken in FireFox

by Mark Nielsen -
Number of replies: 1
Having problems with redirect function in weblib.php while using FireFox 1.0 on Mac OSX.

On redirects where I pass a url like http://www.site.com/?var=x&var2=3 FireFox says that I passed var and amp;var2.

I found that this line seems to be at fault:

echo "<script>location.replace('$url');</script>"; // To cope with Mozilla bug

I commented it out and the redirect works fine in FireFox.

I tried the line from 1.5:

echo '<script type="text/javascript">'. "\n" .'<!--'. "\n"."location.replace('$url');". "\n". '//-->'. "\n". '</script>';

And it still doesn't seem to work.

Anyone have an idea to fix this problem?

Thanks smile
Average of ratings: -
In reply to Mark Nielsen

Re: function redirect broken in FireFox

by Mark Nielsen -
FYI, I tried it in Mozilla with the line commented out and it worked.  I was using Mozilla on Mac OSX 1.6