From 3e1e7064b35b8113459249980b1863dbbcce07b2 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sat, 6 Jan 2018 18:38:19 +0100 Subject: [PATCH] Another attempt to fix the build --- lib/SimpleSAML/Utils/HTTP.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php index d96ed81a1..750824984 100644 --- a/lib/SimpleSAML/Utils/HTTP.php +++ b/lib/SimpleSAML/Utils/HTTP.php @@ -756,6 +756,8 @@ class HTTP $cfg = \SimpleSAML_Configuration::getInstance(); $baseDir = $cfg->getBaseDir(); $cur_path = realpath($_SERVER['SCRIPT_FILENAME']); + // make sure we got a string from realpath() + $cur_path = is_string($cur_path) ? $cur_path : ''; // find the path to the current script relative to the www/ directory of SimpleSAMLphp $rel_path = str_replace($baseDir.'www'.DIRECTORY_SEPARATOR, '', $cur_path); // convert that relative path to an HTTP query -- GitLab