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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Poll MOD - cookies
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jamesdavis
Starting Member

USA
26 Posts

Posted - 10 August 2005 :  08:27:48  Show Profile  Visit jamesdavis's Homepage
The Poll MOD changes to inc_func_common.asp include a funtion called GetVote. This is designed to determine if the user has already voted for a poll question before being allowed to cast that vote.

The function works correctly if called from Topic.asp but it fails when called from inc_poll.asp with the result that guest cookies are not properly checked. That is, a guest can be shown a 'Featured Poll' that he has already voted on, cast another vote and then be told he can only vote once per poll.

The problem is that the cookie tests in that function use the TOPIC_ID variable which has not yet been defined when inc_poll.asp is given control. Since the function requires the topicID as a parameter (which it calls pTopic_ID) the function should use pTopic_ID instead of TOPIC_ID.

Thus, around line 82 in inc_func_common.asp now contains:

cpoll = Request.Cookies(strCookieURL & "poll")("" & Topic_ID & "")
if instr(cpoll, Topic_ID) > 0 then


Should be changed to:

cpoll = Request.Cookies(strCookieURL & "poll")("" & pTopic_ID & "")
if instr(cpoll, pTopic_ID) > 0 then


The same change should be made at around line 98.

Edited by - jamesdavis on 10 August 2005 09:42:07

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 10 August 2005 :  17:23:09  Show Profile
Yes, I am aware of this bug, but haven't released the fix for it yet.

Thanks for pointing it out.

Support Snitz Forums
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07