public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[API] Replaced die(); with exit(); due to code conventions
6372df21
data/web/json_api.php | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
Diff
diff --git a/data/web/json_api.php b/data/web/json_api.php
index 7dd7feaa..0753c74a 100644
--- a/data/web/json_api.php
+++ b/data/web/json_api.php
@@ -134,7 +134,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error',
'msg' => 'only POST method is allowed'
));
- die();
+ exit();
}
switch ($category) {
case "time_limited_alias":
@@ -213,7 +213,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'msg' => 'route not found'
));
unset($_POST);
- die();
+ exit();
}
break;
case "get":
@@ -228,7 +228,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'msg' => 'only GET method is allowed'
));
unset($_POST);
- die();
+ exit();
}
switch ($category) {
case "rspamd":
@@ -595,7 +595,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error',
'msg' => 'route not found'
));
- die();
+ exit();
}
break;
case "mailbox":
@@ -1067,7 +1067,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error',
'msg' => 'route not found'
));
- die();
+ exit();
}
break;
case "delete":
@@ -1101,7 +1101,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error',
'msg' => 'only POST method is allowed'
));
- die();
+ exit();
}
switch ($category) {
case "alias":
@@ -1190,7 +1190,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'msg' => 'route not found'
));
unset($_POST);
- die();
+ exit();
}
break;
case "edit":
@@ -1226,7 +1226,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error',
'msg' => 'only POST method is allowed'
));
- die();
+ exit();
}
switch ($category) {
case "bcc":
@@ -1343,7 +1343,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'msg' => 'route not found'
));
unset($_POST);
- die();
+ exit();
}
break;
// return no route found if no case is matched
@@ -1354,7 +1354,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'msg' => 'route not found'
));
unset($_POST);
- die();
+ exit();
}
}
}