UseBB Community

The official board for UseBB help and discussion

UseBB Community » Bug Reports » [FIXED] Redirect URLs containing backslashes on some platforms (Windows)

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

Page: 1

Author Post
Member
Registered: Dec 2007
Posts: 62
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.
« Last edit by Dietrich on Sat Jan 26, 2008 1:33 pm. »
Developer
Registered: Apr 2004
Posts: 2216
Location: Belgium
What is board_url set to in config.php?
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Dec 2007
Posts: 62
Blank (nothing)

I tried to set webdev-forum.com, www.webdev-forum.com & http://webdev-forum.com but none of them worked
Member
Registered: Dec 2007
Posts: 62
I really need help fast.. :S
Member
Registered: May 2005
Posts: 296
Location: 98671
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.
« Last edit by William on Thu Jan 24, 2008 2:55 pm. »
Member
Registered: Dec 2007
Posts: 62
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.
Member
Registered: May 2005
Posts: 296
Location: 98671
The added \ for FF would be wierd, just might be a server misconfiguration, only thing that I can come up with.
Member
Registered: Dec 2007
Posts: 62
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).
Developer
Registered: Apr 2004
Posts: 2216
Location: Belgium
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.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Dec 2007
Posts: 62
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?
Member
Registered: May 2005
Posts: 296
Location: 98671
Something comes to mind, have you added any mods, if so, its possible a slip of the keyboard added extra / or \ accidently.
Member
Registered: Dec 2007
Posts: 62
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
Developer
Registered: Apr 2004
Posts: 2216
Location: Belgium
Could you post the output of...

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


...in a file placed in the root folder?
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Dec 2007
Posts: 62
Dietrich wrote
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
Developer
Registered: Apr 2004
Posts: 2216
Location: Belgium
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.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Dec 2007
Posts: 62
array(4) { ["dirname"]=> string(1) "\" ["basename"]=> string(9) "index.php" ["extension"]=> string(3) "php" ["filename"]=> string(5) "index" }
Developer
Registered: Apr 2004
Posts: 2216
Location: Belgium
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.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Dec 2007
Posts: 62
Ah okey cool. Thanks for your help.

Source code = version 2, right? Will it be released within a month?
Member
Registered: May 2005
Posts: 296
Location: 98671
Jontish wrote
Source code = version 2, right? Will it be released within a month?

Possibly UseBB 1.0.9
Developer
Registered: Apr 2004
Posts: 2216
Location: Belgium
Fixed in CVS.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog

Page: 1

UseBB Community » Bug Reports » [FIXED] Redirect URLs containing backslashes on some platforms (Windows)

UseBB Community is powered by UseBB 1 Forum Software