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 MOD-Group
 MOD Add-On Forum (W/O Code)
 How to do a redirect?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Astralis
Senior Member

USA
1218 Posts

Posted - 23 September 2005 :  19:51:55  Show Profile  Send Astralis a Yahoo! Message  Reply with Quote
I've been using the following referal to do a modded redirect without problems (v. 3.4.03):

"<input name=""Refer"" type=""hidden"" value=""" &  Request.ServerVariables("HTTP_REFERER") & """>" & vbNewLine & _


But, the following code from (v. 3.4.04) is causing a problem:

"<input name=""Refer"" type=""hidden"" value=""" & GetReferer() & """>" & vbNewLine & _

This is the function:
function GetReferer()
    Dim strReferer
    strReferer = lcase(Request.ServerVariables("HTTP_REFERER"))
    if strReferer = "" then 
     strReferer = "default.asp"
    elseif (Left(strReferer, len(strForumURL)) <> lcase(strForumURL)) then
     strReferer = "default.asp"
    end if
    GetReferer = strReferer
end function

This is my REFERER:
http://www.site.com/forum/post.asp?method=Topic&FORUM_ID=27&artid=1927&ref=
http://www.site.com/site/article.asp?id%3D1927 (I split this so it will fit on the page)

I understand that the function was added for security reasons and I'd like to keep that, but I'm not sure how to do it with my modified referer. Any advice?

<

Edited by - Astralis on 23 September 2005 19:53:48

Podge
Support Moderator

Ireland
3775 Posts

Posted - 24 September 2005 :  08:28:58  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Not entirely sure what the problem is. I understand it to be that the referer you posted is "internal" and that strReferer should be set to default.asp in such cases? This line looks correct

elseif (Left(strReferer, len(strForumURL)) <> lcase(strForumURL)) then
unless strForumURL is not what you think it is

Can you response.write strForumURL and strReferer ?
<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07