Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Open)
 Invalid URL in notifications if not logged
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

amil
Starting Member

8 Posts

Posted - 27 June 2009 :  17:30:24  Show Profile  Reply with Quote
After upgrading to Snitz v3.4.07 the notifications contain a URL like this (if no page number is required):

http://www.xxxx.com/forum/topic.asp?whichpage=-1&TOPIC_ID=476

When this link is clicked AND YOU ARE NOT ALREADY LOGGED IN, then onice you log in, the redirect to the topic will fail and you will end up on the default.asp page.

The issue appears to be related to the query string encoding. The login redirect ends up being:

http://www.xxxx.com/forum/login.asp?target=topic.asp?whichpage=-1&TOPIC_ID&476

Because of the two "?" in the URL, things break. I FIXED this with the following code change:

File: inc_header.asp
Line: 176

From:
Response.Redirect("login.asp?target=" & lcase(scriptname(ubound(scriptname))) & "?" & Request.QueryString)


To:
Response.Redirect("login.asp?target=" & lcase(scriptname(ubound(scriptname))) & "?" & Server.UrlEncode(Request.QueryString))

By adding the Server.UrlEncode of the target, the duplicate "?" issue is fixed.
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07