amil
Starting Member
8 Posts |
Posted - 27 June 2009 : 17:30:24
|
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. |
|