Changeset 6723
- Timestamp:
- 12/26/07 22:23:48 (2 years ago)
- Files:
-
- branches/1.1/lib/view/sfEscapedViewParameterHolder.class.php (modified) (1 diff)
- branches/1.1/test/functional/escapingTest.php (added)
- branches/1.1/test/functional/fixtures/project/apps/frontend/modules/escaping (added)
- branches/1.1/test/functional/fixtures/project/apps/frontend/modules/escaping/actions (added)
- branches/1.1/test/functional/fixtures/project/apps/frontend/modules/escaping/actions/actions.class.php (added)
- branches/1.1/test/functional/fixtures/project/apps/frontend/modules/escaping/templates (added)
- branches/1.1/test/functional/fixtures/project/apps/frontend/modules/escaping/templates/indexSuccess.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/view/sfEscapedViewParameterHolder.class.php
r6176 r6723 68 68 $attributes = array(); 69 69 70 $escapedData = sfOutputEscaper::escape($this->getEscapingMethod(), $this->getAll());71 72 70 switch ($this->getEscaping()) 73 71 { 72 case 'on': 73 $escapedData = sfOutputEscaper::escape($this->getEscapingMethod(), $this->getAll()); 74 $attributes['sf_data'] = $escapedData; 75 break; 74 76 case 'bc': 77 $escapedData = sfOutputEscaper::escape($this->getEscapingMethod(), $this->getAll()); 75 78 $attributes = $this->getAll(); 79 $attributes['sf_data'] = $escapedData; 76 80 break; 77 81 case 'both': 82 $escapedData = sfOutputEscaper::escape($this->getEscapingMethod(), $this->getAll()); 78 83 foreach ($escapedData as $key => $value) 79 84 { 80 85 $attributes[$key] = $value; 81 86 } 87 $attributes['sf_data'] = $escapedData; 88 break; 89 case 'off': 90 $attributes = $this->getAll(); 82 91 break; 83 92 } 84 85 $attributes['sf_data'] = $escapedData;86 93 87 94 return $attributes;

