Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Fix for broken target querystrings (login.asp)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Nertz Posted - 22 March 2006 : 15:30:55
Not sure if this is the right place to post this little tidbit, but I thought it may be useful to others who may have run into a similar situation such as in this post. I just did too, searched here and wasn't able to find a fix, so I just created one. Login.asp from base code 3.4.xx will break and truncate target script querystrings at the first "&" character.

The following fix is my solution I implemented in my forums that will allow multiple query strings to the target script when redirected through login.asp.

1) approx line 53, comment or delete this line of code:
strTarget = trim(chkString(request("target"),"SQLString"))


2) appox. line 65, find this line of code:
	if strLoginStatus = 1 then


3) Immediately above it, insert this line of code:
	strTarget = trim(chkString(request.form("target"),"SQLString"))


4) approx lines 84-87, find these lines of code:
		WriteFooter
		Response.End
	end if
end if


5) Between the two "end if" statements, insert the following code:
else
   tmpTarget = trim(chkString(request.ServerVariables("Query_String"),"SQLString"))
   if inStr(tmpTarget,"target=") then 
   	strTarget = (split(tmpTarget,"target=",-1,1))(1)
   else
   	strTarget = ""
   end if



Moderators: feel free to move this post where appropriate.

cheers,
Nat

[update 20060401] Thanks to leatherlips who discovered a bug if login.asp was called without a target string. see this post. code above step 5 updated. [/update]<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07