From 3bccc02d8b287ba3ceb03e70bf88c6db76ff1579 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Sat, 26 Dec 2020 14:31:42 +0100
Subject: [PATCH] Use proper directory separator, regardless of the OS

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

diff --git a/lib/SimpleSAML/Kernel.php b/lib/SimpleSAML/Kernel.php
index 49b9d6906..f6d5de3b7 100644
--- a/lib/SimpleSAML/Kernel.php
+++ b/lib/SimpleSAML/Kernel.php
@@ -47,13 +47,13 @@ class Kernel extends BaseKernel
     public function getCacheDir(): string
     {
         $configuration = Configuration::getInstance();
-        $cachePath = $configuration->getString('tempdir') . '/cache/' . $this->module;
+        $cachePath = $configuration->getString('tempdir') . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . $this->module;
 
         if (0 === strpos($cachePath, '/')) {
             return $cachePath;
         }
 
-        return $configuration->getBaseDir() . '/' . $cachePath;
+        return $configuration->getBaseDir() . DIRECTORY_SEPARATOR . $cachePath;
     }
 
 
@@ -69,7 +69,7 @@ class Kernel extends BaseKernel
             return $loggingPath;
         }
 
-        return $configuration->getBaseDir() . '/' . $loggingPath;
+        return $configuration->getBaseDir() . DIRECTORY_SEPARATOR . $loggingPath;
     }
 
 
-- 
GitLab