[pLog-svn] r6499 - plog/branches/lifetype-1.2/class/action
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Mon Jun 2 11:13:31 EDT 2008
Author: jondaley
Date: 2008-06-02 11:13:31 -0400 (Mon, 02 Jun 2008)
New Revision: 6499
Modified:
plog/branches/lifetype-1.2/class/action/addcommentaction.class.php
Log:
comment usernames are less restrictive than our normal username validator, just take out html
Modified: plog/branches/lifetype-1.2/class/action/addcommentaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/addcommentaction.class.php 2008-05-30 22:32:18 UTC (rev 6498)
+++ plog/branches/lifetype-1.2/class/action/addcommentaction.class.php 2008-06-02 15:13:31 UTC (rev 6499)
@@ -72,7 +72,7 @@
$this->_form->setFieldErrorMessage( "parentId", $this->_locale->tr("error_incorrect_article_id" ));
$this->registerFieldValidator( "userEmail", new EmailValidator(), true );
$this->_form->setFieldErrorMessage( "userEmail", $this->_locale->tr("error_incorrect_email_address" ));
- $this->registerFieldValidator( "userName", new UsernameValidator());
+ $this->registerFieldValidator( "userName", new StringValidator( false ));
$this->_form->setFieldErrorMessage( "userName", $this->_locale->tr("error_comment_without_name" ));
$this->registerFieldValidator( "commentText", new StringValidator( true ));
$this->_form->setFieldErrorMessage( "commentText", $this->_locale->tr("error_comment_without_text"));
More information about the pLog-svn
mailing list