Skip to content

Commit

Permalink
Handle special characters for the Site Name setting on the Preference…
Browse files Browse the repository at this point in the history
…s page. Update to version 1.3.5
  • Loading branch information
bauhouse committed Nov 5, 2011
1 parent f16a988 commit 5d63bd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.markdown
@@ -1,6 +1,6 @@
# Configuration Settings Extension

- Version: 1.3.4
- Version: 1.3.5
- Author: Stephen Bau (stephen@domain7.com)
- Website: http://www.domain7.com/
- Build Date: 5 November 2011
Expand All @@ -27,6 +27,10 @@ Be sure that your configuration settings are backed up before using this extensi

## Change Log

Version 1.3.5 - 5 November 2011

- Handle special characters for the Site Name setting on the Preferences page

Version 1.3.4 - 5 November 2011

- Fixed a minor bug when using this in conjunction with search index: Escape value output for parameters in case they contain special characters. (Contributed by [David Anderson](http://symphony-cms.com/get-involved/member/davjand/).)
Expand Down
4 changes: 2 additions & 2 deletions extension.driver.php
Expand Up @@ -5,7 +5,7 @@ public function about() {
return array(
'name' => 'Configuration Settings',
'type' => 'interface',
'version' => '1.3.4',
'version' => '1.3.5',
'release-date' => '2011-11-05',
'author' => array(
'name' => 'Stephen Bau',
Expand Down Expand Up @@ -65,7 +65,7 @@ public function appendPreferences($context){

$sitename = Symphony::Configuration()->get('sitename', 'general');
$label = new XMLElement('label', __('Website Name'));
$label->appendChild(Widget::Input('settings[general][sitename]', $sitename, 'text'));
$label->appendChild(Widget::Input('settings[general][sitename]', htmlspecialchars($sitename), 'text'));

$group->appendChild($label);
$context['wrapper']->appendChild($group);
Expand Down

0 comments on commit 5d63bd0

Please sign in to comment.