Skip to content

Commit a52ec4b

Browse files
author
Florian Schaal
committed
set default dkim-path during update / install and corrected mail_domain_dkim_create
1 parent 2b4222e commit a52ec4b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

install/tpl/system.ini.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
enable_custom_login=n
1111
mailboxlist_webmail_link=y
1212
webmail_url=/webmail
13+
dkim_path=/var/lib/amavis/dkim
1314

1415
[monitor]
1516

interface/web/mail/mail_domain_dkim_create.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848

4949
function validate_domain($domain) {
5050
$regex = '/^[\w\.\-]{2,255}\.[a-zA-Z0-9\-]{2,30}$/';
51-
return preg_match($regex, $domain);
51+
if ( preg_match($regex, $domain) === 1 ) return true; else return false;
5252
}
5353

5454
function validate_selector($selector) {
5555
$regex = '/^[a-z0-9]{0,63}$/';
56-
return preg_match($regex, $selector);
56+
if ( preg_match($regex, $selector) === 1 ) return true; else return false;
5757
}
5858

5959
/**

0 commit comments

Comments
 (0)