diff --git a/public_html/api/index.php b/public_html/api/index.php index d2350da19b7443c24e27d937ccc18ee72aa54165..31063b5ec3020186b873c77161bc7b24198e886a 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');