From c943c9baa50578ceb94be2bbca8fcb5ec895a8d1 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Tue, 6 Apr 2021 15:30:52 +0200
Subject: [PATCH] add http code 403 if hashed secret was used twice

---
 public_html/packages/index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public_html/packages/index.php b/public_html/packages/index.php
index 7141902..cc987e1 100644
--- a/public_html/packages/index.php
+++ b/public_html/packages/index.php
@@ -40,7 +40,7 @@
     // limit to one time usage of a hash
     if($aConfig['onetimesecret']){
         if(_checkIfHashWasUsedAlready($lockfile, $sMyHash)) {
-            _quit('Access denied. The hashed was used already.');
+            _quit('Access denied. The hashed was used already.', 403);
         }
         _cleanupLockdata($lockfile, $aConfig['maxlockfilesize'], $iMaxAge);
         
-- 
GitLab