[pLog-svn] r6692 - plog/branches/lifetype-1.2/class/action
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Tue Jul 1 09:13:36 EDT 2008
Author: jondaley
Date: 2008-07-01 09:13:36 -0400 (Tue, 01 Jul 2008)
New Revision: 6692
Modified:
plog/branches/lifetype-1.2/class/action/defaultaction.class.php
plog/branches/lifetype-1.2/class/action/searchaction.class.php
Log:
revert change 6688 - allow HTML in searches, but filter them before performing the search. It might help a user who doesn't understand why his search with <a in it are failing. Now that I am looking at the code - I think a user actually complained about this a really long time ago, and that's why we filter it.
Modified: plog/branches/lifetype-1.2/class/action/defaultaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/defaultaction.class.php 2008-07-01 05:48:38 UTC (rev 6691)
+++ plog/branches/lifetype-1.2/class/action/defaultaction.class.php 2008-07-01 13:13:36 UTC (rev 6692)
@@ -30,7 +30,7 @@
{
$this->BlogAction( $actionInfo, $request );
- $this->registerFieldValidator( "searchTerms", new StringValidator(), true );
+ $this->registerFieldValidator( "searchTerms", new StringValidator( true ), true );
$this->registerFieldValidator( "postCategoryId", new IntegerValidator(), true );
$this->registerFieldValidator( "postCategoryName", new StringValidator( ), true );
$this->registerFieldValidator( "userId", new IntegerValidator(), true );
Modified: plog/branches/lifetype-1.2/class/action/searchaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/searchaction.class.php 2008-07-01 05:48:38 UTC (rev 6691)
+++ plog/branches/lifetype-1.2/class/action/searchaction.class.php 2008-07-01 13:13:36 UTC (rev 6692)
@@ -23,7 +23,7 @@
$this->BlogAction( $actionInfo, $request );
// data validation
- $this->registerFieldValidator( "searchTerms", new StringValidator());
+ $this->registerFieldValidator( "searchTerms", new StringValidator( true ));
$this->setValidationErrorView( new ErrorView( $this->_blogInfo, "error_incorrect_search_terms" ));
}
More information about the pLog-svn
mailing list