Changeset 8158
- Timestamp:
- 03/30/08 18:17:00 (1 year ago)
- Files:
-
- branches/1.1/lib/config/config/settings.yml (modified) (1 diff)
- branches/1.1/lib/config/sfApplicationConfiguration.class.php (modified) (1 diff)
- branches/1.1/lib/form/sfForm.class.php (modified) (2 diffs)
- branches/1.1/lib/task/generator/skeleton/app/app/config/settings.yml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/config/config/settings.yml
r7899 r8158 20 20 compressed: off # Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler. 21 21 check_lock: off # Enable the application lock system triggered by the clear-cache and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_data_dir/web/arrors/unavailable.php page. 22 23 # Form security secret (CSRF protection) 24 form_csrf_secret: false # Unique secret to enable CSRF protection or false to disable 22 25 23 26 # Output escaping settings branches/1.1/lib/config/sfApplicationConfiguration.class.php
r7962 r8158 103 103 } 104 104 105 if (false !== sfConfig::get('sf_form_csrf_secret')) 106 { 107 sfForm::enableCSRFProtection(sfConfig::get('sf_form_csrf_secret')); 108 } 109 105 110 // force setting default timezone if not set 106 111 if ($default_timezone = sfConfig::get('sf_default_timezone')) branches/1.1/lib/form/sfForm.class.php
r7354 r8158 24 24 { 25 25 protected static 26 $CSRFProtection = true,26 $CSRFProtection = false, 27 27 $CSRFSecret = null, 28 28 $CSRFFieldName = '_csrf_token'; … … 513 513 static public function enableCSRFProtection($secret = null) 514 514 { 515 if (false === $secret) 516 { 517 return self::disableCSRFProtection(); 518 } 519 515 520 self::$CSRFProtection = true; 516 521 branches/1.1/lib/task/generator/skeleton/app/app/config/settings.yml
r7899 r8158 41 41 # compressed: off # Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler. 42 42 # check_lock: off # Enable the application lock system triggered by the clear-cache and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_data_dir/web/arrors/unavailable.php page. 43 # 44 # # Form security secret (CSRF protection) 45 # form_csrf_secret: false # Unique secret to enable CSRF protection or false to disable 43 46 # 44 47 # # Output escaping settings

