escaping data

Author Message

safe ghaf

Tuesday 18 April 2006 7:57:13 am

hi all,

Can anyone tell me how to filter/escape data coming from inputs used in a self-made extension? is there a compontenet to achive that? especially the data coming from cookies or url.

thanks in advance

Eirik Alfstad Johansen

Monday 01 May 2006 10:34:31 pm

Hi safe,

Have you checked out the UserInput component (http://ez.no/products/ez_components/ez_components_list)? It sounds like it might be what you're looking for.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 19 2025 01:23:08
Script start
Timing: Jan 19 2025 01:23:08
Module start 'layout'
Timing: Jan 19 2025 01:23:08
Module start 'content'
Timing: Jan 19 2025 01:23:08
Module end 'content'
Timing: Jan 19 2025 01:23:08
Script end

Main resources:

Total runtime0.5973 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 590.1484152.6094
Module start 'layout' 0.00830.0029 742.757839.3984
Module start 'content' 0.01120.5840 782.1563517.9688
Module end 'content' 0.59520.0020 1,300.12508.2031
Script end 0.5973  1,308.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.6267160.0002
Check MTime0.00160.2717160.0001
Mysql Total
Database connection0.00130.210310.0013
Mysqli_queries0.540890.5433540.0100
Looping result0.00110.1834520.0000
Template Total0.563294.320.2816
Template load0.00260.435420.0013
Template processing0.560693.850420.2803
Template load and register function0.00030.048510.0003
states
state_id_array0.00060.099110.0006
state_identifier_array0.00110.190520.0006
Override
Cache load0.00180.3054100.0002
Sytem overhead
Fetch class attribute can translate value0.00100.173020.0005
Fetch class attribute name0.00100.166930.0003
XML
Image XML parsing0.00100.171120.0005
class_abstraction
Instantiating content class attribute0.00000.001530.0000
General
dbfile0.00080.1372160.0001
String conversion0.00020.027540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs