Skip to content

Commit 6b17bf5

Browse files
Marius BurkardJudah - MW
authored andcommitted
Fix leading dot check @pixcept
1 parent 2263514 commit 6b17bf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/functions.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ private function _idn_encode_decode($domain, $encode = true) {
335335
}
336336

337337
// idn_to_* chokes on leading dots, but we need them for amavis, so remove it for later
338-
if(strpos($domain, '.') == 0) {
338+
if(substr($domain, 0, 1) === '.') {
339339
$leading_dot = true;
340340
$domain = substr($domain, 1);
341341
} else {

0 commit comments

Comments
 (0)