From 5b7fffe78684903e2599421f6e504062e57a4da7 Mon Sep 17 00:00:00 2001
From: HWFord <54360213+HWFord@users.noreply.github.com>
Date: Wed, 8 Jan 2025 11:33:27 +0100
Subject: [PATCH] fixes #2308 remove html and use previous redirect
The previous way worked fine with the redirect, adding a html added an extra step for users. The access denied page was only supposed to be used for pages that we don't have access to once connected
---
include/functions_html.inc.php | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 1f4649118..ef6ce0fdf 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -287,13 +287,7 @@ function access_denied()
}
else
{
- set_status_header(401);
-
- echo $access_denied_html;
- echo ''.l10n('Identification').'';
- echo ''.l10n('Home').'';
- echo str_repeat( ' ', 512); //IE6 doesn't error output if below a size
- exit();
+ redirect_html($login_url);
}
}