Commit 6b17bf5f authored by Marius Burkard's avatar Marius Burkard Committed by Judah - MW
Browse files

Fix leading dot check @pixcept

parent 22635140
......@@ -335,7 +335,7 @@ class functions {
}
// idn_to_* chokes on leading dots, but we need them for amavis, so remove it for later
if(strpos($domain, '.') == 0) {
if(substr($domain, 0, 1) === '.') {
$leading_dot = true;
$domain = substr($domain, 1);
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment