From ed7c72ad3020df1b9384fc47f4143fd776fac13f Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Mon, 18 Jul 2022 04:04:16 -0400
Subject: [PATCH] system: fix "enforcement" spelling
---
src/etc/inc/authgui.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/etc/inc/authgui.inc b/src/etc/inc/authgui.inc
index f04a5ff60..40083ca3d 100644
--- a/src/etc/inc/authgui.inc
+++ b/src/etc/inc/authgui.inc
@@ -99,7 +99,7 @@ function check_security_dns_rebind()
}
/* HTTP referer detection, return true when being forwarded from an unknown referer*/
-function check_security_http_referer_enforement()
+function check_security_http_referer_enforcement()
{
global $config;
if (!isset($config['system']['webgui']['nohttpreferercheck']) && isset($_SERVER['HTTP_REFERER'])) {
@@ -157,7 +157,7 @@ function session_auth()
if (check_security_dns_rebind()) {
display_error_form(sprintf(gettext('A potential %sDNS Rebind attack%s has been detected.%sTry to access the router by IP address instead of by hostname. You can disable this check if needed under System: Settings: Administration.'), '', '', '
'));
exit;
- } elseif (check_security_http_referer_enforement()) {
+ } elseif (check_security_http_referer_enforcement()) {
display_error_form(sprintf(
gettext('The HTTP_REFERER "%s" does not match the predefined settings. You can disable this check if needed under System: Settings: Administration.'),
html_safe($_SERVER['HTTP_REFERER'])