Skip to content
Snippets Groups Projects

V2.0

Merged Hahn Axel (hahn) requested to merge v2.0 into master
Compare and Show latest version
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -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');
Loading