Changeset 1656

Show
Ignore:
Timestamp:
03/02/10 09:57:39 (5 months ago)
Author:
klemens
Message:

Reverted escaping changes. ullWidgets must output escape content, as sfForm is excluded from symfony output escaping

Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ullCorePlugin/lib/form/widget/ullWidget.php

    r1650 r1656  
    4949    $value = $this->handleSuffixOption($value); 
    5050     
     51    $value = esc_entities($value); 
     52     
    5153    $value = $this->handleNowrapOption($value); 
    5254     
     
    6567    if ($suffix = $this->getOption('suffix')) 
    6668    { 
    67       // removed esc_entities because it makes trouble for mailing 
    68 //      $value = esc_entities(($suffix) ? $value . ' ' . $suffix : $value); 
    6969      $value = $value . ' ' . $suffix; 
    7070    } 
     71     
    7172    return $value; 
    7273  } 
  • trunk/plugins/ullCorePlugin/lib/form/widget/ullWidgetForeignKey.php

    r1531 r1656  
    8585    } 
    8686     
     87    $return = esc_entities($return); 
     88     
    8789    // POPUP 
    8890    if ( 
  • trunk/test/functional/frontend/ullFlowPlugin/ullFlowCrudTest.php

    r1652 r1656  
    155155  ->isRequestParameter('module', 'ullFlow') 
    156156  ->isRequestParameter('action', 'list') 
    157   // TODO: fails at the moment. We have to look into the escaping issue (See wiki) 
    158157  ->checkResponseElement($dgsListTT->get(1, 'subject') . ' > b > a > i', false) 
    159158; 
  • trunk/test/unit/ullTableTool/ullWidgetTest.php

    r1651 r1656  
    1616$t->diag('->render()');   
    1717  $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 &lt;i&gt;Italy&lt;/i&gt;', '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&uuml;&szlig;el', 'correctly escapes umlauts'); 
     19  $t->is($w->render('foo', 'Welcome to <i>Italy</i>'), 'Welcome to &lt;i&gt;Italy&lt;/i&gt;', 'escapes html entities'); 
    2320 
    2421$t->diag('nowrap option');