[pLog-svn] r860 - plugins/trunk/flickr/class/action

mark at devel.plogworld.net mark at devel.plogworld.net
Thu Jan 27 09:34:46 GMT 2005


Author: mark
Date: 2005-01-27 09:34:45 +0000 (Thu, 27 Jan 2005)
New Revision: 860

Modified:
   plugins/trunk/flickr/class/action/pluginflickrupdateconfigaction.class.php
Log:
Add ctype_digit check to integer value.

Modified: plugins/trunk/flickr/class/action/pluginflickrupdateconfigaction.class.php
===================================================================
--- plugins/trunk/flickr/class/action/pluginflickrupdateconfigaction.class.php	2005-01-27 09:32:32 UTC (rev 859)
+++ plugins/trunk/flickr/class/action/pluginflickrupdateconfigaction.class.php	2005-01-27 09:34:45 UTC (rev 860)
@@ -62,7 +62,7 @@
             $this->_showNote = $this->_request->getValue( "showNote" );
             
             $this->_expiredTime = $this->_request->getValue( "expiredTime" );
-            if( $this->_expiredTime < 3600 ) {
+            if( $this->_expiredTime < 3600 || !ctype_digit($this->_expiredTime) ) {
                 $this->_view = new PluginFlickrConfigView( $this->_blogInfo );
                 $this->_view->setErrorMessage( $this->_locale->tr("flickr_error_expiredtime"));
                 $this->setCommonData();




More information about the pLog-svn mailing list