[pLog-svn] r3548 - plog/trunk/class/data

mark at devel.lifetype.net mark at devel.lifetype.net
Wed Jun 7 08:31:32 GMT 2006


Author: mark
Date: 2006-06-07 08:31:31 +0000 (Wed, 07 Jun 2006)
New Revision: 3548

Modified:
   plog/trunk/class/data/kses.class.php
Log:
Fix a bug that the break the input html content.

Example:
If we post the following text in comment:
"aaa bbb < ccc ddd", we will got "aaa bbb " only.

Becasue kses treat ccc as a html tag.

So, we need to do this modification to make kses won't break the html content.



Modified: plog/trunk/class/data/kses.class.php
===================================================================
--- plog/trunk/class/data/kses.class.php	2006-06-06 21:43:40 UTC (rev 3547)
+++ plog/trunk/class/data/kses.class.php	2006-06-07 08:31:31 UTC (rev 3548)
@@ -308,7 +308,7 @@
 			return preg_replace(
 				'%(<'.   # EITHER: <
 				'[^>]*'. # things that aren't >
-				'(>|$)'. # > or end of string
+				'>'. 	 # must >
 				'|>)%e', # OR: just a >
 				"\$this->_split2('\\1')",
 				$string);



More information about the pLog-svn mailing list