[pLog-svn] r3430 - plog/trunk/class/action
mark at devel.lifetype.net
mark at devel.lifetype.net
Thu May 18 07:03:22 GMT 2006
Author: mark
Date: 2006-05-18 07:03:21 +0000 (Thu, 18 May 2006)
New Revision: 3430
Modified:
plog/trunk/class/action/blogaction.class.php
Log:
Fix the bug http://bugs.lifetype.net/view.php?id=900 in 1.1
I just try to validate the date is an "integer" or not. If not, we just get the current date.
Modified: plog/trunk/class/action/blogaction.class.php
===================================================================
--- plog/trunk/class/action/blogaction.class.php 2006-05-18 05:48:19 UTC (rev 3429)
+++ plog/trunk/class/action/blogaction.class.php 2006-05-18 07:03:21 UTC (rev 3430)
@@ -2,6 +2,7 @@
include_once( PLOG_CLASS_PATH."class/action/action.class.php" );
include_once( PLOG_CLASS_PATH."class/config/config.class.php" );
+ include_once( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
/**
* \ingroup Action
@@ -252,7 +253,8 @@
function checkDateParameter()
{
$date = $this->_request->getValue( 'Date' );
- if( $date ) {
+ $val = new IntegerValidator();
+ if( $date && $val->validate( $date ) ) {
$year = substr( $date, 0, 4);
$month = substr( $date, 4,2 );
$day = substr( $date, 6, 2);
More information about the pLog-svn
mailing list