Skip to content

Commit 0064d59

Browse files
author
Marius Burkard
committed
- strip @ sign on global black/whitelist for domains
1 parent b8ff9fd commit 0064d59

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

interface/web/mail/mail_blacklist_edit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ function onBeforeUpdate() {
8686
function onSubmit() {
8787
global $app, $conf;
8888

89+
if(substr($this->dataRecord['source'], 0, 1) === '@') $this->dataRecord['source'] = substr($this->dataRecord['source'], 1);
90+
8991
// Check the client limits, if user is not the admin
9092
if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
9193
// Get the limits of the client

interface/web/mail/mail_whitelist_edit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ function onBeforeUpdate() {
8585
function onSubmit() {
8686
global $app, $conf;
8787

88+
if(substr($this->dataRecord['source'], 0, 1) === '@') $this->dataRecord['source'] = substr($this->dataRecord['source'], 1);
89+
8890
// Check the client limits, if user is not the admin
8991
if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
9092
// Get the limits of the client

0 commit comments

Comments
 (0)