From b7c794bf6c74de5e0c62bc3e1c60744192471e90 Mon Sep 17 00:00:00 2001 From: Noemie Ariste Date: Fri, 3 Nov 2023 10:34:26 +1300 Subject: [PATCH] Update post.twig to point to publicly available post files And remove deprecated post.php --- .extlib/simplesamlphp/templates/post.php | 75 ----------------------- .extlib/simplesamlphp/templates/post.twig | 4 +- 2 files changed, 2 insertions(+), 77 deletions(-) delete mode 100644 .extlib/simplesamlphp/templates/post.php diff --git a/.extlib/simplesamlphp/templates/post.php b/.extlib/simplesamlphp/templates/post.php deleted file mode 100644 index af9714d03..000000000 --- a/.extlib/simplesamlphp/templates/post.php +++ /dev/null @@ -1,75 +0,0 @@ - - - - - POST data - - - - - - - -
- - -data)) { - $post = $this->data['post']; -} else { - // For backwards compatibility - assert(array_key_exists('response', $this->data)); - assert(array_key_exists('RelayStateName', $this->data)); - assert(array_key_exists('RelayState', $this->data)); - $post = [ - 'SAMLResponse' => $this->data['response'], - $this->data['RelayStateName'] => $this->data['RelayState'], - ]; -} - -/** - * Write out one or more INPUT elements for the given name-value pair. - * - * If the value is a string, this function will write a single INPUT element. - * If the value is an array, it will write multiple INPUT elements to - * recreate the array. - * - * @param string $name The name of the element. - * @param string|array $value The value of the element. - */ -function printItem($name, $value) -{ - assert(is_string($name)); - assert(is_string($value) || is_array($value)); - if (is_string($value)) { - echo ''; - return; - } - // This is an array... - foreach ($value as $index => $item) { - printItem($name.'['.$index.']', $item); - } -} - -foreach ($post as $name => $value) { - printItem($name, $value); -} -?> - -
- - - diff --git a/.extlib/simplesamlphp/templates/post.twig b/.extlib/simplesamlphp/templates/post.twig index f049d62ae..da0054415 100644 --- a/.extlib/simplesamlphp/templates/post.twig +++ b/.extlib/simplesamlphp/templates/post.twig @@ -7,8 +7,8 @@ {% trans %}Sending message{% endtrans %} - - + +