Form submission and collectedinfo

Author Message

Lars Eirik R

Tuesday 24 November 2009 4:46:16 am

Hi.

Is there a good way to prevent someone from accessing a collectedinfo/<nodeid> if no variables have been submitted ?

We submit these data to google each time someone has submitted something. As far as I see it is possible to access this page without having any form submitted.

Thanks.

Romain Petit

Saturday 28 November 2009 5:28:37 am

Hi,

In the result template you can add the template operator "redirectrelative" ( you can find it in the contribution section ) after testing the existence of the form's post variables, or the "InformationCollectionMap" session variable.

Lars Eirik R

Saturday 28 November 2009 3:06:18 pm

Thanks for the reply.

I believe this solution would work for what i am trying achieve

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 29 2025 23:49:46
Script start
Timing: Jan 29 2025 23:49:46
Module start 'layout'
Timing: Jan 29 2025 23:49:46
Module start 'content'
Timing: Jan 29 2025 23:49:46
Module end 'content'
Timing: Jan 29 2025 23:49:47
Script end

Main resources:

Total runtime0.0119 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.1406151.2109
Module start 'layout' 0.00440.0021 739.351636.6641
Module start 'content' 0.00640.0042 776.015690.0625
Module end 'content' 0.01060.0013 866.078129.9922
Script end 0.0119  896.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002218.1944140.0002
Check MTime0.00108.5704140.0001
Mysql Total
Database connection0.00064.804010.0006
Mysqli_queries0.002016.519130.0007
Looping result0.00000.108010.0000
Template Total0.00097.710.0009
Template load0.00076.171410.0007
Template processing0.00021.493410.0002
Override
Cache load0.00054.478110.0005
General
dbfile0.00086.999180.0001
String conversion0.00000.058040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs