From 9a387dd5a3cf9a3c15d030031be0b45bdb3dff4d Mon Sep 17 00:00:00 2001
From: John Okely <john@moodle.com>
Date: Fri, 8 Apr 2016 09:58:34 +0800
Subject: [PATCH] MDL-53750 auth: fix logout bug in shibboleth

Original patch by Dr. Michael Schneider
---
 auth/shibboleth/logout.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/auth/shibboleth/logout.php b/auth/shibboleth/logout.php
index 60f44c3..db0f719 100644
--- a/auth/shibboleth/logout.php
+++ b/auth/shibboleth/logout.php
@@ -32,7 +32,7 @@ if ($action == 'logout' && !empty($redirect)) {
         redirect($redirect);
     }
 
-} else if (!file_get_contents("php://input")) {
+} else if (!empty(file_get_contents("php://input"))) {
 
     // Back channel logout.
     // Set SOAP header.
-- 
1.9.1

