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

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Wed Feb 25 15:32:39 EST 2009


Author: jondaley
Date: 2009-02-25 15:32:39 -0500 (Wed, 25 Feb 2009)
New Revision: 6841

Modified:
   plog/branches/lifetype-1.2/class/data/inputfilter.class.php
Log:
just strip out newlines, like the comment says, rather than all whitespace, like the code said

Modified: plog/branches/lifetype-1.2/class/data/inputfilter.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/data/inputfilter.class.php	2009-02-23 03:20:31 UTC (rev 6840)
+++ plog/branches/lifetype-1.2/class/data/inputfilter.class.php	2009-02-25 20:32:39 UTC (rev 6841)
@@ -217,7 +217,8 @@
 				// strips unicode, hex, etc
 				$attrSubSet[1] = str_replace('&#', '', $attrSubSet[1]);
 				// strip normal newline within attr value
-				$attrSubSet[1] = preg_replace('/\s+/', '', $attrSubSet[1]);
+                // jondaley/lifetype: this also stripped out all whitespace, not just newlines
+				$attrSubSet[1] = preg_replace('/\n\r/', '', $attrSubSet[1]);
 				// strip double quotes
 				$attrSubSet[1] = str_replace('"', '', $attrSubSet[1]);
 				// [requested feature] convert single quotes from either side to doubles (Single quotes shouldn't be used to pad attr value)



More information about the pLog-svn mailing list