Skip to content
Snippets Groups Projects
Commit faf07ef1 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

php 8.2 fix: api

parent abb16b24
No related branches found
No related tags found
1 merge request!62V2.0
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
* Check authorization in the http request header and age of timestamp * Check authorization in the http request header and age of timestamp
* On a failed check the request will be terminated * On a failed check the request will be terminated
* @global int $iMaxAge max allowed age * @global int $iMaxAge max allowed age
* @param type $sProjectSecret * @param string $sProjectSecret
* @return boolean * @return boolean
*/ */
function _checkAuth($sProjectSecret){ function _checkAuth($sProjectSecret){
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
$sGotReq=$_SERVER['REQUEST_URI']; $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)); $sMyHash= base64_encode(hash_hmac("sha1", $sMyData, $sProjectSecret));
_wd('Hash: '.$sGotHash.' -- from header'); _wd('Hash: '.$sGotHash.' -- from header');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment