[pLog-svn] r6684 - plog/branches/lifetype-1.2/class/data/validator
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Mon Jun 30 15:01:31 EDT 2008
Author: jondaley
Date: 2008-06-30 15:01:31 -0400 (Mon, 30 Jun 2008)
New Revision: 6684
Modified:
plog/branches/lifetype-1.2/class/data/validator/blognamevalidator.class.php
plog/branches/lifetype-1.2/class/data/validator/domainvalidator.class.php
Log:
don't allow html in blogname or domain name. Mark - does this break anything for you?
Modified: plog/branches/lifetype-1.2/class/data/validator/blognamevalidator.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/data/validator/blognamevalidator.class.php 2008-06-30 18:46:37 UTC (rev 6683)
+++ plog/branches/lifetype-1.2/class/data/validator/blognamevalidator.class.php 2008-06-30 19:01:31 UTC (rev 6684)
@@ -24,6 +24,7 @@
// it can't be empty
$this->addRule( new NonEmptyRule());
+ $this->addRule( new NoHtmlRule() );
// it can't be any of the forbidden ones
$config =& Config::getConfig();
Modified: plog/branches/lifetype-1.2/class/data/validator/domainvalidator.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/data/validator/domainvalidator.class.php 2008-06-30 18:46:37 UTC (rev 6683)
+++ plog/branches/lifetype-1.2/class/data/validator/domainvalidator.class.php 2008-06-30 19:01:31 UTC (rev 6684)
@@ -23,6 +23,7 @@
{
$this->Validator();
$this->addRule( new NonEmptyRule());
+ $this->addRule( new NoHtmlRule() );
$config =& Config::getConfig();
$forbiddenDomainNames = $config->getValue( "forbidden_usernames", "" );
$forbiddenDomainNamesArray = explode( " ", $forbiddenDomainNames );
More information about the pLog-svn
mailing list