[pLog-svn] r6684 - plog/branches/lifetype-1.2/class/data/validator

Mark Wu markplace at gmail.com
Tue Jul 1 01:57:53 EDT 2008


It should be okay. I'll check it.

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of 
> jondaley at devel.lifetype.net
> Sent: Tuesday, July 01, 2008 3:02 AM
> To: plog-svn at devel.lifetype.net
> Subject: [pLog-svn] r6684 - 
> plog/branches/lifetype-1.2/class/data/validator
> 
> 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/blognamevalida
> tor.class.php
>    
> plog/branches/lifetype-1.2/class/data/validator/domainvalidato
> r.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/blognamevalida
> tor.class.php
> ===================================================================
> --- 
> plog/branches/lifetype-1.2/class/data/validator/blognamevalida
> tor.class.php	2008-06-30 18:46:37 UTC (rev 6683)
> +++ 
> plog/branches/lifetype-1.2/class/data/validator/blognamevalida
> tor.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/domainvalidato
> r.class.php
> ===================================================================
> --- 
> plog/branches/lifetype-1.2/class/data/validator/domainvalidato
> r.class.php	2008-06-30 18:46:37 UTC (rev 6683)
> +++ 
> plog/branches/lifetype-1.2/class/data/validator/domainvalidato
> r.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 );
> 
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list