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

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Feb 13 15:56:03 EST 2009


Author: jondaley
Date: 2009-02-13 15:56:03 -0500 (Fri, 13 Feb 2009)
New Revision: 6796

Modified:
   plog/branches/lifetype-1.2/class/data/validator/rules/nohtmlrule.class.php
Log:
filterAllHtml trims its output, so we need to either pre-trim our before passing it to the validator, or just trim it during our equivalent check

Modified: plog/branches/lifetype-1.2/class/data/validator/rules/nohtmlrule.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/data/validator/rules/nohtmlrule.class.php	2009-02-13 19:41:45 UTC (rev 6795)
+++ plog/branches/lifetype-1.2/class/data/validator/rules/nohtmlrule.class.php	2009-02-13 20:56:03 UTC (rev 6796)
@@ -19,7 +19,7 @@
         function validate($value)
         {
             $filtered = Textfilter::filterAllHtml($value);
-            return ($filtered == $value);
+            return ($filtered == trim($value));
         }
     }
 ?>



More information about the pLog-svn mailing list