[pLog-svn] r6851 - plog/branches/lifetype-1.2/class/action/admin
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sat Apr 11 13:24:13 EDT 2009
Author: jondaley
Date: 2009-04-11 13:24:13 -0400 (Sat, 11 Apr 2009)
New Revision: 6851
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php
Log:
strip out all prefixed and trailing spaces in global settings. I can't see anywhere this would do anything but help the users by silently fixing their typos
Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php 2009-04-11 17:16:32 UTC (rev 6850)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php 2009-04-11 17:24:13 UTC (rev 6851)
@@ -56,7 +56,7 @@
$view->setErrorMessage( $this->_locale->tr("error_saving_site_config"));
$this->setValidationErrorView( $view );
- // all the seettings come from a very nice array from the html form
+ // all the settings come from a very nice array from the html form
$this->_newConfigOpts = Array();
$this->_newConfigOpts = $this->_request->getValue( "config" );
@@ -114,7 +114,7 @@
// we can proceed to update the config
foreach( $this->_newConfigOpts as $key => $value ) {
- $this->_config->setValue( $key, $value );
+ $this->_config->setValue( $key, trim($value) );
}
// and finally save everything
$res = $this->_config->save();
More information about the pLog-svn
mailing list