From faf07ef1d10a3dd77c1d2263751071b293f45197 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Wed, 22 Nov 2023 12:33:45 +0100
Subject: [PATCH] php 8.2 fix: api

---
 public_html/api/index.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public_html/api/index.php b/public_html/api/index.php
index d2350da1..31063b5e 100644
--- a/public_html/api/index.php
+++ b/public_html/api/index.php
@@ -75,7 +75,7 @@
      * Check authorization in the http request header and age of timestamp
      * On a failed check the request will be terminated
      * @global int $iMaxAge         max allowed age
-     * @param type $sProjectSecret
+     * @param string $sProjectSecret
      * @return boolean
      */
     function _checkAuth($sProjectSecret){
@@ -95,7 +95,7 @@
         $sGotReq=$_SERVER['REQUEST_URI'];
 
 
-        $sMyData="${sGotMethod}\n${sGotReq}\n${sGotDate}\n";
+        $sMyData="$sGotMethod\n$sGotReq\n$sGotDate\n";
         $sMyHash= base64_encode(hash_hmac("sha1", $sMyData, $sProjectSecret));
 
         _wd('Hash: '.$sGotHash.' -- from header');
-- 
GitLab