aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/api.php')
-rw-r--r--engine/lib/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/api.php b/engine/lib/api.php
index 75486d71c..4ca9e208c 100644
--- a/engine/lib/api.php
+++ b/engine/lib/api.php
@@ -891,10 +891,10 @@
$params,
$api_header->method == 'POST' ? $api_header->posthash : "");
- if (strcmp(
+ if ((strcmp(
$api_header->hmac,
$hmac
- )==0)
+ )==0) && ($api_header->hmac) && ($hmac))
{
// Now make sure this is not a replay
if (!cache_hmac_check_replay($hmac))