From 721ee60e8d1806e56b4732fe31d7ad7bf07c141e Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 17 Apr 2011 16:31:09 +0000 Subject: [PATCH] DomainHandler.php: - convert domain name to lowercase This is a follow-up to https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3287965&group_id=191583 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1038 a1433add-5e2c-0410-b055-b7f2511e0802 --- model/DomainHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/DomainHandler.php b/model/DomainHandler.php index 26a792b0..5fa63fe7 100644 --- a/model/DomainHandler.php +++ b/model/DomainHandler.php @@ -17,7 +17,7 @@ class DomainHandler extends PFAHandler { * @param string $username */ public function __construct($username, $new = 0) { - $this->username = $username; + $this->username = strtolower($username); # TODO: find a better place for strtolower() to avoid a special constructor in DomainHandler (or agree that $username should be lowercase in all *Handler classes ;-) if ($new) $this->new = 1; # TODO: if $new == 1, check that item does NOT exist and is a valid (in this case) domain # TODO: else: check if item exists. error out if not.