Skip to content
Snippets Groups Projects
Commit 6b17bf5f authored by Marius Burkard's avatar Marius Burkard Committed by Judah - MW
Browse files

Fix leading dot check @pixcept

parent 22635140
No related branches found
No related tags found
No related merge requests found
...@@ -335,7 +335,7 @@ class functions { ...@@ -335,7 +335,7 @@ class functions {
} }
// idn_to_* chokes on leading dots, but we need them for amavis, so remove it for later // 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; $leading_dot = true;
$domain = substr($domain, 1); $domain = substr($domain, 1);
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment