[pLog-svn] r859 - in plugins/trunk: articlereferers/class/action
recentcomments/class/action recenttrackbacks/class/action
topcommentposts/class/action topcommentvisitors/class/action
topreadposts/class/action toptrackbackposts/class/action
mark at devel.plogworld.net
mark at devel.plogworld.net
Thu Jan 27 09:32:33 GMT 2005
Author: mark
Date: 2005-01-27 09:32:32 +0000 (Thu, 27 Jan 2005)
New Revision: 859
Modified:
plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php
plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php
plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php
plugins/trunk/topcommentposts/class/action/plugintopcommentpostsupdateconfigaction.class.php
plugins/trunk/topcommentvisitors/class/action/plugintopcommentvisitorsupdateconfigaction.class.php
plugins/trunk/topreadposts/class/action/plugintopreadpostsupdateconfigaction.class.php
plugins/trunk/toptrackbackposts/class/action/plugintoptrackbackpostsupdateconfigaction.class.php
Log:
Add ctype_digit check to all integer value.
Modified: plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php
===================================================================
--- plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php 2005-01-27 07:55:58 UTC (rev 858)
+++ plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php 2005-01-27 09:32:32 UTC (rev 859)
@@ -24,7 +24,7 @@
$this->_pluginEnabled = ($this->_pluginEnabled != "" );
$this->_sortByField = $this->_request->getValue( "sortByField" );
$this->_maxReferers = $this->_request->getValue( "maxReferers" );
- if( $this->_maxReferers < 0 ) {
+ if( $this->_maxReferers < 0 || !ctype_digit($this->_maxReferers) ) {
$this->_view = new PluginArticleReferersConfigView( $this->_blogInfo );
$this->_view->setErrorMessage( $this->_locale->tr("articlereferers_error_maxreferers"));
$this->setCommonData();
@@ -59,7 +59,7 @@
$this->saveSession();
$this->_view = new PluginArticleReferersConfigView( $this->_blogInfo );
- $this->_view->setSuccessMessage( $this->_locale->tr("gravatar_settings_saved_ok"));
+ $this->_view->setSuccessMessage( $this->_locale->tr("articlereferers_settings_saved_ok"));
$this->setCommonData();
return true;
Modified: plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php
===================================================================
--- plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php 2005-01-27 07:55:58 UTC (rev 858)
+++ plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php 2005-01-27 09:32:32 UTC (rev 859)
@@ -22,7 +22,7 @@
$this->_pluginEnabled = $this->_request->getValue( "pluginEnabled" );
$this->_pluginEnabled = ($this->_pluginEnabled != "" );
$this->_maxComments = $this->_request->getValue( "maxComments" );
- if( $this->_maxComments <= 0 ) {
+ if( $this->_maxComments <= 0 || !ctype_digit($this->_maxComments) ) {
$this->_view = new PluginRecentCommentsConfigView( $this->_blogInfo );
$this->_view->setErrorMessage( $this->_locale->tr("recentcomments_error_maxcomments"));
$this->setCommonData();
Modified: plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php
===================================================================
--- plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php 2005-01-27 07:55:58 UTC (rev 858)
+++ plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php 2005-01-27 09:32:32 UTC (rev 859)
@@ -22,7 +22,7 @@
$this->_pluginEnabled = $this->_request->getValue( "pluginEnabled" );
$this->_pluginEnabled = ($this->_pluginEnabled != "" );
$this->_maxTrackbacks = $this->_request->getValue( "maxTrackbacks" );
- if( $this->_maxTrackbacks <= 0 ) {
+ if( $this->_maxTrackbacks <= 0 || !ctype_digit($this->_maxTrackbacks) ) {
$this->_view = new PluginRecentTrackbacksConfigView( $this->_blogInfo );
$this->_view->setErrorMessage( $this->_locale->tr("recenttrackbacks_error_maxtrackbacks"));
$this->setCommonData();
Modified: plugins/trunk/topcommentposts/class/action/plugintopcommentpostsupdateconfigaction.class.php
===================================================================
--- plugins/trunk/topcommentposts/class/action/plugintopcommentpostsupdateconfigaction.class.php 2005-01-27 07:55:58 UTC (rev 858)
+++ plugins/trunk/topcommentposts/class/action/plugintopcommentpostsupdateconfigaction.class.php 2005-01-27 09:32:32 UTC (rev 859)
@@ -22,7 +22,7 @@
$this->_pluginEnabled = $this->_request->getValue( "pluginEnabled" );
$this->_pluginEnabled = ($this->_pluginEnabled != "" );
$this->_maxPosts = $this->_request->getValue( "maxPosts" );
- if( $this->_maxPosts <= 0 ) {
+ if( $this->_maxPosts <= 0 || !ctype_digit($this->_maxPosts) ) {
$this->_view = new PluginTopCommentPostsConfigView( $this->_blogInfo );
$this->_view->setErrorMessage( $this->_locale->tr("topcommentposts_error_maxposts"));
$this->setCommonData();
Modified: plugins/trunk/topcommentvisitors/class/action/plugintopcommentvisitorsupdateconfigaction.class.php
===================================================================
--- plugins/trunk/topcommentvisitors/class/action/plugintopcommentvisitorsupdateconfigaction.class.php 2005-01-27 07:55:58 UTC (rev 858)
+++ plugins/trunk/topcommentvisitors/class/action/plugintopcommentvisitorsupdateconfigaction.class.php 2005-01-27 09:32:32 UTC (rev 859)
@@ -22,7 +22,7 @@
$this->_pluginEnabled = $this->_request->getValue( "pluginEnabled" );
$this->_pluginEnabled = ($this->_pluginEnabled != "" );
$this->_maxVisitors = $this->_request->getValue( "maxVisitors" );
- if( $this->_maxVisitors <= 0 ) {
+ if( $this->_maxVisitors <= 0 || !ctype_digit($this->_maxVisitors) ) {
$this->_view = new PluginTopCommentVisitorsConfigView( $this->_blogInfo );
$this->_view->setErrorMessage( $this->_locale->tr("topcommentvisitors_error_maxvisitors"));
$this->setCommonData();
Modified: plugins/trunk/topreadposts/class/action/plugintopreadpostsupdateconfigaction.class.php
===================================================================
--- plugins/trunk/topreadposts/class/action/plugintopreadpostsupdateconfigaction.class.php 2005-01-27 07:55:58 UTC (rev 858)
+++ plugins/trunk/topreadposts/class/action/plugintopreadpostsupdateconfigaction.class.php 2005-01-27 09:32:32 UTC (rev 859)
@@ -22,7 +22,7 @@
$this->_pluginEnabled = $this->_request->getValue( "pluginEnabled" );
$this->_pluginEnabled = ($this->_pluginEnabled != "" );
$this->_maxPosts = $this->_request->getValue( "maxPosts" );
- if( $this->_maxPosts <= 0 ) {
+ if( $this->_maxPosts <= 0 || !ctype_digit($this->_maxPosts) ) {
$this->_view = new PluginTopReadPostsConfigView( $this->_blogInfo );
$this->_view->setErrorMessage( $this->_locale->tr("topreadposts_error_maxposts"));
$this->setCommonData();
Modified: plugins/trunk/toptrackbackposts/class/action/plugintoptrackbackpostsupdateconfigaction.class.php
===================================================================
--- plugins/trunk/toptrackbackposts/class/action/plugintoptrackbackpostsupdateconfigaction.class.php 2005-01-27 07:55:58 UTC (rev 858)
+++ plugins/trunk/toptrackbackposts/class/action/plugintoptrackbackpostsupdateconfigaction.class.php 2005-01-27 09:32:32 UTC (rev 859)
@@ -22,7 +22,7 @@
$this->_pluginEnabled = $this->_request->getValue( "pluginEnabled" );
$this->_pluginEnabled = ($this->_pluginEnabled != "" );
$this->_maxPosts = $this->_request->getValue( "maxPosts" );
- if( $this->_maxPosts <= 0 ) {
+ if( $this->_maxPosts <= 0 || !ctype_digit($this->_maxPosts) ) {
$this->_view = new PluginTopTrackbackPostsConfigView( $this->_blogInfo );
$this->_view->setErrorMessage( $this->_locale->tr("toptrackbackposts_error_maxposts"));
$this->setCommonData();
More information about the pLog-svn
mailing list