SOURCES: postfixadmin-preg_fix.patch (NEW) - rel.2 - preg_fix patc...

blues blues at pld-linux.org
Thu Apr 3 10:41:35 CEST 2008


Author: blues                        Date: Thu Apr  3 08:41:35 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- rel.2 - preg_fix patch added - one preg_replace was pointless and in some
  situations there was problem with '\r\n' in alias edition

---- Files affected:
SOURCES:
   postfixadmin-preg_fix.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/postfixadmin-preg_fix.patch
diff -u /dev/null SOURCES/postfixadmin-preg_fix.patch:1.1
--- /dev/null	Thu Apr  3 10:41:35 2008
+++ SOURCES/postfixadmin-preg_fix.patch	Thu Apr  3 10:41:30 2008
@@ -0,0 +1,17 @@
+--- ./edit-alias.php.org	2005-01-07 00:00:00.000000000 +0100
++++ ./edit-alias.php	2008-04-03 10:20:08.209852910 +0200
+@@ -77,10 +77,10 @@ if ($_SERVER['REQUEST_METHOD'] == "POST"
+    }
+ 
+    $goto = preg_replace ('/\\\r\\\n/', ',', $fGoto);
+-	$goto = preg_replace ('/\r\n/', ',', $fGoto);
+-	$goto = preg_replace ('/[\s]+/i', '', $goto);
+-	$goto = preg_replace ('/\,*$/', '', $goto);
+-	$array = preg_split ('/,/', $goto);
++   $goto = preg_replace ('/\r\n/', ',', $goto);
++   $goto = preg_replace ('/[\s]+/i', '', $goto);
++   $goto = preg_replace ('/\,*$/', '', $goto);
++   $array = preg_split ('/,/', $goto);
+ 
+ 	for ($i = 0; $i < sizeof ($array); $i++) {
+ 		if (in_array ("$array[$i]", $CONF['default_aliases'])) continue;
================================================================


More information about the pld-cvs-commit mailing list