From d94b4a6a95fc885173344262fbf8509bcf8fbb65 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Fri, 15 Apr 2011 23:26:58 +0000 Subject: [PATCH] create-domain.php: - force domain name to lowercase to avoid problems with PgSQL foreign keys Reported by Munroe Sollog (roe1234@SF), https://sourceforge.net/tracker/?func=detail&aid=3287965&group_id=191583&atid=937964 after some bughunting on #postfixadmin git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1037 a1433add-5e2c-0410-b055-b7f2511e0802 --- create-domain.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/create-domain.php b/create-domain.php index c476654e..824426fe 100644 --- a/create-domain.php +++ b/create-domain.php @@ -71,6 +71,9 @@ foreach($form_fields as $key => $default) { } } } + +$fDomain = strtolower($fDomain); + if ($_SERVER['REQUEST_METHOD'] == "GET") { /* default values as set above */