Skip to content

Commit

Permalink
Sanitise section names in data source output (Closes #781)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdunn authored and brendo committed Oct 8, 2011
1 parent 331b4f9 commit 7618198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symphony/lib/toolkit/data-sources/datasource.section.php
Expand Up @@ -110,7 +110,7 @@ function processRecordGroup(&$wrapper, $element, $group, $ds, &$entryManager, &$
trigger_error(__('The section associated with the data source <code>%s</code> could not be found.', array($about['name'])), E_USER_ERROR);
}

$sectioninfo = new XMLElement('section', $section->get('name'), array('id' => $section->get('id'), 'handle' => $section->get('handle')));
$sectioninfo = new XMLElement('section', General::sanitize($section->get('name')), array('id' => $section->get('id'), 'handle' => $section->get('handle')));

if($this->_force_empty_result == true){
$this->_force_empty_result = false; //this is so the section info element doesn't dissapear.
Expand Down

0 comments on commit 7618198

Please sign in to comment.