[pLog-svn] r4337 - in plog/branches/lifetype-1.1.3/class: data test/tests/data

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Nov 26 20:38:51 GMT 2006


Author: oscar
Date: 2006-11-26 20:38:50 +0000 (Sun, 26 Nov 2006)
New Revision: 4337

Modified:
   plog/branches/lifetype-1.1.3/class/data/textfilter.class.php
   plog/branches/lifetype-1.1.3/class/test/tests/data/textfilter_test.class.php
Log:
fixed issue 1122 (http://bugs.lifetype.net/view.php?id=1122) -- slugs back to lowercase


Modified: plog/branches/lifetype-1.1.3/class/data/textfilter.class.php
===================================================================
--- plog/branches/lifetype-1.1.3/class/data/textfilter.class.php	2006-11-26 20:23:49 UTC (rev 4336)
+++ plog/branches/lifetype-1.1.3/class/data/textfilter.class.php	2006-11-26 20:38:50 UTC (rev 4337)
@@ -529,6 +529,8 @@
             $string = preg_replace("/[".$separator."]+/", $separator, $string);
                 // remove starting and trailing separator chars
             $string = trim($string, $separator);
+				// and convert to lowercase
+			$string = strtolower( $string );
 
             return $string;
 		}

Modified: plog/branches/lifetype-1.1.3/class/test/tests/data/textfilter_test.class.php
===================================================================
--- plog/branches/lifetype-1.1.3/class/test/tests/data/textfilter_test.class.php	2006-11-26 20:23:49 UTC (rev 4336)
+++ plog/branches/lifetype-1.1.3/class/test/tests/data/textfilter_test.class.php	2006-11-26 20:38:50 UTC (rev 4337)
@@ -35,7 +35,8 @@
 				"<a>html</a><b>is</b><h1>not</h1><p>allowed</p>"
                  => "htmlisnotallowed",
 				"unclosed < html</a><b >shouldn't </b>be<h1> <p>stripped</p>"
-                 => "unclosed{$sep}htmlshouldn{$sep}t{$sep}be{$sep}stripped");
+                 => "unclosed{$sep}htmlshouldn{$sep}t{$sep}be{$sep}stripped",
+                "SOME uppercase CHARAcTERS" => "some{$sep}uppercase{$sep}characters" );
 				
 			// process each one of them
 			foreach( $tests as $input => $output ) {



More information about the pLog-svn mailing list