From 0e3b9ca2d99115756cda30a3f10fa476394a487d Mon Sep 17 00:00:00 2001
From: heddn <lucashedding@1463982.no-reply.drupal.org>
Date: Tue, 21 Apr 2015 13:16:35 -0600
Subject: [PATCH] Issue #2475421 by heddn: httprl_queue_background_callback
 with NULL &$result always fails

---
 httprl.async.inc | 2 +-
 httprl.module    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/httprl.async.inc b/httprl.async.inc
index 7a9ffdf..c0d3942 100644
--- a/httprl.async.inc
+++ b/httprl.async.inc
@@ -74,7 +74,7 @@ function httprl_async_page() {
   // @see http://tools.ietf.org/html/rfc4648#page-7
   $serialized_string = trim(base64_decode(strtr($_POST['args'], array('-' => '+', '_' => '/'))));
   $args = @unserialize($serialized_string);
-  if ($serialized_string !== 'b:0;' && $args == FALSE) {
+  if ($serialized_string !== 'b:0;' && $args === FALSE) {
     httprl_fast403('unserialize failed');
   }
 
diff --git a/httprl.module b/httprl.module
index 75b2715..f6be7d3 100644
--- a/httprl.module
+++ b/httprl.module
@@ -2086,7 +2086,7 @@ function httprl_extract_background_callback_data(&$result) {
   // @see http://tools.ietf.org/html/rfc4648#page-7
   $serialized_string = trim(base64_decode(strtr(current($data), array('-' => '+', '_' => '/'))));
   $data = @unserialize($serialized_string);
-  if ($data !== 'b:0;' && $data == FALSE) {
+  if ($data !== 'b:0;' && $data === FALSE) {
     return;
   }
 
-- 
2.3.5

