[Web] Fix: show success message after quarantine action

[Git] Add ignore
master
andryyy 2020-07-12 21:42:36 +02:00
parent 1dc95ba3d3
commit 9860b62d4e
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -17,6 +17,7 @@ data/conf/postfix/allow_mailcow_local.regexp
data/conf/dovecot/sql
data/conf/dovecot/lua
data/conf/dovecot/global_sieve_*
data/conf/dovecot/sogo_trusted_ip.conf
data/conf/nextcloud-*.bak
data/web/inc/vars.local.inc.php
data/web/css/build/0081-custom-mailcow.css

View File

@ -1,7 +1,7 @@
<?php
session_start();
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
if (quarantine('hash_details', $_GET['hash']) === false) {
if (quarantine('hash_details', $_GET['hash']) === false && !isset($_POST)) {
header('Location: /admin');
exit();
}