Commit 26382f96 authored by lucashedding's avatar lucashedding Committed by mikeytown2

Issue #2475421 by heddn: httprl_queue_background_callback with &$result = NULL always fails

parent 53b27766
......@@ -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');
}
......
......@@ -2091,7 +2091,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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment