Commit 0064d598 authored by Marius Burkard's avatar Marius Burkard

- strip @ sign on global black/whitelist for domains

parent b8ff9fd8
......@@ -86,6 +86,8 @@ class page_action extends tform_actions {
function onSubmit() {
global $app, $conf;
if(substr($this->dataRecord['source'], 0, 1) === '@') $this->dataRecord['source'] = substr($this->dataRecord['source'], 1);
// Check the client limits, if user is not the admin
if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
// Get the limits of the client
......
......@@ -85,6 +85,8 @@ class page_action extends tform_actions {
function onSubmit() {
global $app, $conf;
if(substr($this->dataRecord['source'], 0, 1) === '@') $this->dataRecord['source'] = substr($this->dataRecord['source'], 1);
// Check the client limits, if user is not the admin
if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
// Get the limits of the client
......
Markdown is supported
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