[FIXED] Redirect URLs containing backslashes on some platforms (Windows)

Submitted by Anonymous on Wed, 01/23/2008 - 20:14
Written by
Jontish

Hello, I am going to have the forum at the root folder of the server.
But the links doesnt work properly when you have it on root folder.. I tried to reinstall and use the IP instead of domain.
if you want to test:
www.webdev-forum.com

click "announcements"
click first thread
click my name "Jontish"
everything fine so far, but when you
click "Search members posts"
Link in IE: http://www.webdev-forum.com//search.php?act=results
Link in Firefox: http://www.webdev-forum.com\/search.php?act=results

this is making FF users unavailable to view some links
so, one "/" shouldnt be..
this appear only on some links.

What is board_url set to in config.php?

I really need help fast.. :S

Not sure if its resolved or not, I followed your example and I am not seeing it, using latest version of Firefox.

Add, login comes up.

Yea I took it to /forums now, thats why its working but when I put it on root (www.webdev-forum.com), it wont work -.-

but trust me, something is wrong.

The added \ for FF would be wierd, just might be a server misconfiguration, only thing that I can come up with.

Yes, you are soo right becouse I remember I tested this on one of my other dedicated servers and it didn't appear there.
Do you have ANY clue what this could be?
I am using XAMPP.. (Apache).

This has nothing to do with the browser you use... The Location header somehow contains a backslash. I don't have the time to find out right now, but it is certainly NOT a common issue since many people are using UseBB in the root folder.

Actually it does becouse with IE I can view the link, with FF I cant.
Tested on 3 computers.

I think this is a misconfiguration in the server as William said, any clues?

Something comes to mind, have you added any mods, if so, its possible a slip of the keyboard added extra / or \ accidently.

No it has something to do with server configuration becouse I tried to reinstall and it was the same prob.
I just dont get it why only some links doesnt work :S

Could you post the output of...

<?php var_dump(pathinfo($_SERVER['SCRIPT_NAME']));

...in a file placed in the root folder?

Dietrich

Could you post the output of...

<?php var_dump(pathinfo($_SERVER['SCRIPT_NAME']));

...in a file placed in the root folder?

Sorry, I didnt get you there.

Post the "output"? What's that?
Also I don't understand what you mean with "a file".

Thx for helping tho..its urgent

Copy the contens of the quote block to a .php file, upload it to the root folder, navigate to it and copy the contents you see here.

array(4) { ["dirname"]=> string(1) "\" ["basename"]=> string(9) "index.php" ["extension"]=> string(3) "php" ["filename"]=> string(5) "index" }

Well, it's obviously the dirname that's containing the backslash. Haven't seen this before, but will apply a fix to the source code tomorrow. :)

Moving to bug reports.

Ah okey cool. Thanks for your help.

Source code = version 2, right? Will it be released within a month?

Jontish

Source code = version 2, right? Will it be released within a month?

Possibly UseBB 1.0.9

Fixed in CVS.