From 849d86ec93b54127d9b07cedf743ef76c3528298 Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 25 Sep 2008 21:43:54 +0000 Subject: git-svn-id: https://code.elgg.org/elgg/trunk@2140 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib/api.php') 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)) -- cgit v1.2.3