[pLog-svn] r1935 - plog/branches/plog-1.1-ben/class/action
ork at devel.plogworld.net
ork at devel.plogworld.net
Tue May 3 19:18:08 GMT 2005
Author: ork
Date: 2005-05-03 19:18:08 +0000 (Tue, 03 May 2005)
New Revision: 1935
Modified:
plog/branches/plog-1.1-ben/class/action/templateaction.class.php
Log:
includes
Modified: plog/branches/plog-1.1-ben/class/action/templateaction.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/action/templateaction.class.php 2005-05-03 18:49:21 UTC (rev 1934)
+++ plog/branches/plog-1.1-ben/class/action/templateaction.class.php 2005-05-03 19:18:08 UTC (rev 1935)
@@ -2,7 +2,6 @@
include_once( PLOG_CLASS_PATH."class/action/blogaction.class.php" );
include_once( PLOG_CLASS_PATH."class/view/templateview.class.php" );
- include_once( PLOG_CLASS_PATH."class/view/errorview.class.php" );
include_once( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
/**
@@ -41,8 +40,6 @@
$this->BlogAction( $actionInfo, $request );
$this->registerFieldValidator( "show", new StringValidator());
- $view = new ErrorView( $this->_blogInfo, "error_parameter_missing" );
- $this->setValidationErrorView( $view );
}
/**
@@ -59,6 +56,11 @@
$templateFile = $this->_request->getValue( "show" );
// then, check if it has any extraneous character
if( strstr( $templateFile, ".." )) {
+ include_once( PLOG_CLASS_PATH."class/view/errorview.class.php" );
+
+ $view = new ErrorView( $this->_blogInfo, "error_parameter_missing" );
+ $this->setValidationErrorView( $view );
+
$this->_view = new ErrorView( $this->_blogInfo );
$this->_view->setValue( "message", "error_incorrect_parameter" );
$this->setCommonData();
More information about the pLog-svn
mailing list