From 74ef2dfcd1a07a50eac77403e1431d3f96a11ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Meezaan-ud-Din=20Abdu=20Dhil-Jalali=20Wal-Ikram=20/=20?= =?UTF-8?q?=D9=85=D9=90=D9=8A=D8=B2=D9=8E=D8=A7=D9=86=D9=8F=20=D8=A7=D9=84?= =?UTF-8?q?=D9=92=D8=AF=D9=91=D9=90=D9=8A=D9=86=D9=92=20=D8=B9=D9=8E=D8=A8?= =?UTF-8?q?=D9=92=D8=AF=D9=8F=20=D8=B0=D9=90=D9=8A=D9=92=20=D8=A7=D9=84?= =?UTF-8?q?=D9=92=D8=AC=D9=8E=D9=84=D9=8E=D8=A7=D9=84=D9=90=20=D9=88=D9=8E?= =?UTF-8?q?=20=D8=A7=D9=84=D9=92=D8=A5=D9=90=D9=83=D9=92=D8=B1=D9=8E=D8=A7?= =?UTF-8?q?=D9=85=D9=90?= Date: Sun, 3 Mar 2019 21:53:14 +0000 Subject: [PATCH] Re-enable WAF check --- config/dependencies.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/dependencies.php b/config/dependencies.php index 3be85bf..7f4b8c5 100644 --- a/config/dependencies.php +++ b/config/dependencies.php @@ -31,10 +31,10 @@ }; /** Invoke Middleware for WAF Checks */ -/** + $app->add(function (Request $request, Response $response, $next) { - $proxyMode = (bool)getenv('WAF_PROXY_MODE'); + $proxyMode = (bool) getenv('WAF_PROXY_MODE'); if ($proxyMode) { // Validate Key @@ -52,4 +52,4 @@ return $response; }); -**/ +