]> _ Git - fluidbook-hosting.git/commitdiff
wip #4277 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 22 Feb 2021 13:09:59 +0000 (14:09 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 22 Feb 2021 13:09:59 +0000 (14:09 +0100)
LVMH-SSO/_secure.php
LVMH-SSO/ja/index.html [new file with mode: 0644]
LVMH-SSO/zh/index.html [new file with mode: 0644]

index 8288667dec6616067d02d4b306e118e7e5db5bc2..945a6c09e452e93806c7a5d4e7d148a385957a39 100644 (file)
@@ -118,6 +118,12 @@ if ($needsAuth) {
             session_write_close();
             file_put_contents(__DIR__ . '/log/ok.' . $t . '.log', print_r($_SESSION, true));
             file_put_contents(__DIR__ . '/log/xml.' . $t . '.log', $auth->getLastResponseXML());
+
+            if ($_POST['RelayState'] !== 'https://hosting.fluidbook.com/LVMH/Internal-Control-Base-December-2020/') {
+                header('Location: ' . $_POST['RelayState'], true);
+                exit;
+            }
+
         } else {
             file_put_contents(__DIR__ . '/log/err.' . $t . '.log', print_r($errors, true) . "\n\n--\n\n" . print_r($auth->getLastErrorReason(), true) . "\n\n--\n\n" . print_r($auth->getLastErrorException(), true));
         }
diff --git a/LVMH-SSO/ja/index.html b/LVMH-SSO/ja/index.html
new file mode 100644 (file)
index 0000000..e59dcc6
--- /dev/null
@@ -0,0 +1 @@
+Test vers version JA はい :)
\ No newline at end of file
diff --git a/LVMH-SSO/zh/index.html b/LVMH-SSO/zh/index.html
new file mode 100644 (file)
index 0000000..4f6b890
--- /dev/null
@@ -0,0 +1 @@
+Test vers version ZH 好的 :)
\ No newline at end of file