[pLog-svn] r4100 - plog/branches/lifetype-1.1.1/class/data

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Oct 6 20:52:20 GMT 2006


Author: jondaley
Date: 2006-10-06 20:52:20 +0000 (Fri, 06 Oct 2006)
New Revision: 4100

Modified:
   plog/branches/lifetype-1.1.1/class/data/textfilter.class.php
Log:
reverting revision 4071, it broke multi-domains. If people don't want this.sub.domain.com, then maybe we need a checkbox to not allow them or something.  Or if we don't want dots when the blogname is used in the url portion, we can do that. Or in blog names, but that is different than the domain names

Modified: plog/branches/lifetype-1.1.1/class/data/textfilter.class.php
===================================================================
--- plog/branches/lifetype-1.1.1/class/data/textfilter.class.php	2006-10-06 10:45:57 UTC (rev 4099)
+++ plog/branches/lifetype-1.1.1/class/data/textfilter.class.php	2006-10-06 20:52:20 UTC (rev 4100)
@@ -454,12 +454,12 @@
             // replace some characters to similar ones
             // underscores aren't allowed in domain names according to rfc specs, and
             // cause trouble in some browsers, particularly with cookies.
-            $search  = array('-', '_',' ', '.', 'ä','ö','ü','é','è','à','ç','à','è','ì','ò','ù','á','é','í','ó','ú','ë','ï' );
-            $replace = array( $sep, $sep, $sep, $sep, 'a','o','u','e','e','a','c','a','e','i','o','u','a','e','i','o','u','e','i' );
+            $search  = array('-', '_',' ', 'ä','ö','ü','é','è','à','ç','à','è','ì','ò','ù','á','é','í','ó','ú','ë','ï' );
+            $replace = array( $sep, $sep, $sep, 'a','o','u','e','e','a','c','a','e','i','o','u','a','e','i','o','u','e','i' );
             $string = str_replace($search, $replace, $string);
 
             // and everything that is still left that hasn't been replaced/encoded, throw it away
-            $string = preg_replace( "/[^a-z0-9".$sep."]/", '', $string );
+            $string = preg_replace( "/[^a-z0-9.".$sep."]/", '', $string );
             $string = trim($string, "-.");
 
             return $string;            



More information about the pLog-svn mailing list