aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-25 21:43:54 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-25 21:43:54 +0000
commit849d86ec93b54127d9b07cedf743ef76c3528298 (patch)
treed478523c27d65809abf8291ac68ffb1e9074d6ac
parent8b6c41d600cab39472c3c1b62f66914336b41ce8 (diff)
downloadelgg-849d86ec93b54127d9b07cedf743ef76c3528298.tar.gz
elgg-849d86ec93b54127d9b07cedf743ef76c3528298.tar.bz2
git-svn-id: https://code.elgg.org/elgg/trunk@2140 36083f99-b078-4883-b0ff-0f9b5a30f544
-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))