?
Referenced as Pull Request for: # 5800
avatar cppl
cppl
17 Jan 2015

JForm::filterField($element, $value) appears to have a copy&paste issue in the safehtml case, specifically it calls clean() with a type of 'string':

// Filter safe HTML.
case 'SAFEHTML':
    $return = JFilterInput::getInstance(null, null, 1, 1)->clean($value, 'string');
    break;

It appears the only choice developers have is raw if a JForm field needs to include HTML tags, not sure why this hasn't been found before.

avatar cppl cppl - open - 17 Jan 2015
avatar jissues-bot jissues-bot - change - 17 Jan 2015
Labels Added: ?
avatar brianteeman
brianteeman - comment - 18 Jan 2015

See #5800


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5799.
avatar brianteeman brianteeman - change - 18 Jan 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-01-18 00:34:57
Closed_By brianteeman
avatar brianteeman brianteeman - close - 18 Jan 2015

Add a Comment

Login with GitHub to post a comment