Changeset 1656
- Timestamp:
- 03/02/10 09:57:39 (5 months ago)
- Location:
- trunk
- Files:
-
- 4 modified
-
plugins/ullCorePlugin/lib/form/widget/ullWidget.php (modified) (2 diffs)
-
plugins/ullCorePlugin/lib/form/widget/ullWidgetForeignKey.php (modified) (1 diff)
-
test/functional/frontend/ullFlowPlugin/ullFlowCrudTest.php (modified) (1 diff)
-
test/unit/ullTableTool/ullWidgetTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ullCorePlugin/lib/form/widget/ullWidget.php
r1650 r1656 49 49 $value = $this->handleSuffixOption($value); 50 50 51 $value = esc_entities($value); 52 51 53 $value = $this->handleNowrapOption($value); 52 54 … … 65 67 if ($suffix = $this->getOption('suffix')) 66 68 { 67 // removed esc_entities because it makes trouble for mailing68 // $value = esc_entities(($suffix) ? $value . ' ' . $suffix : $value);69 69 $value = $value . ' ' . $suffix; 70 70 } 71 71 72 return $value; 72 73 } -
trunk/plugins/ullCorePlugin/lib/form/widget/ullWidgetForeignKey.php
r1531 r1656 85 85 } 86 86 87 $return = esc_entities($return); 88 87 89 // POPUP 88 90 if ( -
trunk/test/functional/frontend/ullFlowPlugin/ullFlowCrudTest.php
r1652 r1656 155 155 ->isRequestParameter('module', 'ullFlow') 156 156 ->isRequestParameter('action', 'list') 157 // TODO: fails at the moment. We have to look into the escaping issue (See wiki)158 157 ->checkResponseElement($dgsListTT->get(1, 'subject') . ' > b > a > i', false) 159 158 ; -
trunk/test/unit/ullTableTool/ullWidgetTest.php
r1651 r1656 16 16 $t->diag('->render()'); 17 17 $t->is($w->render('foo', 'bar'), 'bar', 'renders the widget as HTML'); 18 // Do NOT encode html entities 19 // $t->is($w->render('foo', 'SchÃŒÃel'), 'Schüßel', 'correctly escapes umlauts'); 20 // $t->is($w->render('foo', 'Welcome to <i>Italy</i>'), 'Welcome to <i>Italy</i>', 'escapes html entities'); 21 $t->is($w->render('foo', 'SchÃŒÃel'), 'SchÃŒÃel', 'Does not html entity decode umlauts'); 22 $t->is($w->render('foo', 'Welcome to <i>Italy</i>'), 'Welcome to <i>Italy</i>', 'Does not html entity tags (e.g. "<" chars)'); 18 $t->is($w->render('foo', 'SchÃŒÃel'), 'Schüßel', 'correctly escapes umlauts'); 19 $t->is($w->render('foo', 'Welcome to <i>Italy</i>'), 'Welcome to <i>Italy</i>', 'escapes html entities'); 23 20 24 21 $t->diag('nowrap option');
