Skip to content

Commit

Permalink
Item1756: Validate method configure setting should be fixed values
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@4239 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
KennethLavrsen authored and KennethLavrsen committed Jun 20, 2009
1 parent d04470d commit f4da009
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions core/lib/Foswiki.spec
Expand Up @@ -256,7 +256,7 @@ $Foswiki::cfg{Sessions}{UseIPMatching} = 0;
# <i>off</i>.
$Foswiki::cfg{Sessions}{MapIP2SID} = 0;

# **STRING EXPERT**
# **SELECT strikeone,embedded,none EXPERT **
# By default Foswiki uses Javascript to perform "double submission" validation
# of browser requests. This technique, called "strikeone", is highly
# recommended for the prevention of cross-site request forgery (CSRF).
Expand All @@ -266,23 +266,26 @@ $Foswiki::cfg{Sessions}{MapIP2SID} = 0;
# is less secure, but still offers some protection against CSRF. Both
# validation techniques rely on user verification of "suspicious"
# transactions.
# This option allows you to select which validation technique will be used.
# This option allows you to select which validation technique will be
# used.<br />
# If it is set to "strikeone", or is undefined, 0, or the empty string, then
# double-submission using Javascript will be used.
# If it is set to "embedded", then embedded validation keys will be used.
# double-submission using Javascript will be used.<br />
# If it is set to "embedded", then embedded validation keys will be used.<br/>
# If it is set to "none", then no validation of posted requests will
# be performed.
# If the option is not set, Foswiki will default to 'strikeone'.
$Foswiki::cfg{Validation}{Method} = 'strikeone';

# **NUMBER EXPERT**
# Validation keys are stored for a maximum of this amount of time before
# they are invalidated. Time in seconds.
$Foswiki::cfg{Validation}{ValidForTime} = 3600;

# **NUMBER EXPERT**
# The maximum number of validation keys to store in a session. There is one
# key stored for each page rendered. If the number of keys exceeds this
# number, the oldest keys will be force-expired to bring the number down.
$Foswiki::cfg{Validation}{MaxKeysPerSession} = 1000;

# **BOOLEAN EXPERT**
# Expire a validation key immediately when it is used to validate the saving
# of a page. This protects against an attacker evesdropping the communication
Expand Down

0 comments on commit f4da009

Please sign in to comment.