From 8078b2094d780ae309b331bc0dec7c8b68b7f5c8 Mon Sep 17 00:00:00 2001
From: Jaime Perez Crespo <jaime.perez@uninett.no>
Date: Wed, 22 Apr 2015 14:58:19 +0200
Subject: [PATCH] Bugfix.

---
 lib/SimpleSAML/Utils/HTTP.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php
index beef3fd16..0a26f301b 100644
--- a/lib/SimpleSAML/Utils/HTTP.php
+++ b/lib/SimpleSAML/Utils/HTTP.php
@@ -101,14 +101,14 @@ class HTTP
         $port = (isset($_SERVER['SERVER_PORT'])) ? $_SERVER['SERVER_PORT'] : '80';
         if (self::getServerHTTPS()) {
             if ($port !== '443') {
-                $port = ':'.$port;
+                return ':'.$port;
             }
         } else {
             if ($port !== '80') {
-                $port = ':'.$port;
+                return ':'.$port;
             }
         }
-        return $port;
+        return '';
     }
 
 
-- 
GitLab