From 9e96e0b36f970f88cdc0f6bab9467757e8dbcd37 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Wed, 4 May 2016 07:52:26 +0800 Subject: [PATCH] MDL-53750 shibboleth: Passing a var to empty for PHP 5.4 --- auth/shibboleth/logout.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth/shibboleth/logout.php b/auth/shibboleth/logout.php index db0f7199fe921..997f757234aeb 100644 --- a/auth/shibboleth/logout.php +++ b/auth/shibboleth/logout.php @@ -23,6 +23,7 @@ } // Front channel logout. +$inputstream = file_get_contents("php://input"); if ($action == 'logout' && !empty($redirect)) { if ($USER->auth == 'shibboleth') { @@ -32,7 +33,7 @@ redirect($redirect); } -} else if (!empty(file_get_contents("php://input"))) { +} else if (!empty($inputstream)) { // Back channel logout. // Set SOAP header.