Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 80931ed

Browse files
author
Billy Clark
committed
superfluous code
1 parent c0008da commit 80931ed

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

themes/material/core/loginuserpass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function onRecaptchaLoad() {
3838
<?php include __DIR__ . '/../common-announcement.php' ?>
3939

4040

41-
<form method="POST" action="<?= htmlentities($_SERVER['PHP_SELF']) ?>">
41+
<form method="POST">
4242
<input type="hidden" name="AuthState"
4343
value="<?= htmlentities($this->data['stateparams']['AuthState'] ?? null) ?>" />
4444
<?php

themes/material/default/selectidp-links.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ function clickedAnyway(idpName) {
3737
<main class="mdl-layout__content">
3838
<?php include __DIR__ . '/../common-announcement.php' ?>
3939

40-
<form action="<?= htmlentities($_SERVER['PHP_SELF']) ?>"
41-
layout-children="row" child-spacing="space-around">
40+
<form layout-children="row" child-spacing="space-around">
4241
<input type="hidden" name="entityID"
4342
value="<?= htmlentities($this->data['entityID'] ?? null) ?>" />
4443
<input type="hidden" name="return"

themes/material/expirychecker/about2expire.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
</header>
1717
<!--TODO: do we need ?? null on these data[] retrievals as done in other pages? Test what happens when the key is altered to a nonexistent name -->
1818
<main class="mdl-layout__content" layout-children="column">
19-
<!-- TODO: since this is just a GET back to itself, I don't think action is needed at all...need to test in other browsers to make sure though. -->
20-
<form action="<?= htmlentities($this->data['formTarget']); ?>" layout-children="column">
19+
<form layout-children="column">
2120
<?php
2221
foreach ($this->data['formData'] as $name => $value) {
2322
?>

themes/material/expirychecker/expired.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
</header>
1717
<!--TODO: do we need ?? null on these data[] retrievals as done in other pages? Test what happens when the key is altered to a nonexistent name -->
1818
<main class="mdl-layout__content" layout-children="column">
19-
<!-- TODO: since this is just a GET back to itself, I don't think action is needed at all...need to test in other browsers to make sure though. -->
20-
<form action="<?= htmlentities($this->data['formTarget']); ?>" layout-children="column">
19+
<form layout-children="column">
2120
<?php
2221
foreach ($this->data['formData'] as $name => $value) {
2322
?>

0 commit comments

Comments
 (0)