Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

CFFormProtect
Project Home Blog Forums Known Issues Screenshots Contact Project

CFFormProtect Issue: Use of form scope in testTimedFormSubmission()

Name: Use of form scope in testTimedFormSubmission()
ID: 15
Project: CFFormProtect
Type: Bug
Area: Code
Severity: Normal
Status: Fixed
Related URL:
Creator: David Epler
Created: 02/28/12 10:15 AM
Updated: 10/05/12 9:59 AM
Description: When using a scope other than form in testSubmission() the following error will occur:

cffpVerify.cfc : line 240
Element FORMFIELD1234567893 is undefined in FORM.

Lines 240, 241, and 245 all directly use form instead of arguments.FormStruct

The corrected lines are:
240: if (StructKeyExists(arguments.FormStruct,"formfield1234567893") AND ListLen(arguments.FormStruct.formfield1234567893) eq 2)   {

241: FormDate = ListFirst(arguments.FormStruct.formfield1234567893)-19740206;

245: FormTime = ListLast(arguments.FormStruct.formfield1234567893)-19740206;
History: Created by dcepler (David Epler) : 02/28/12 10:15 AM

Comment by yacoubean (Jake Munson) : 10/05/12 9:58 AM
This has been fixed and will be part of the next release.

Updated by yacoubean (Jake Munson) : 10/05/12 9:59 AM

To add a comment to this bug, please login using the link above.