Skip to content

Commit

Permalink
remove trailing slash of password pages fix #360
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-peugnet committed Nov 7, 2023
1 parent 203560f commit 1acd192
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/class/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function match()
['POST', '/!profile/password', 'Controllerprofile#password', 'profilepassword'],
['GET', '/!info', 'Controllerinfo#desktop', 'info'],
['GET', '/[cid:page]/', 'Controllerpage#pagepermanentredirect', 'pageread/'],
['POST', '/[cid:page]/', 'Controllerpage#read', 'pageread/post'],
['POST', '/[cid:page]', 'Controllerpage#read', 'pagereadpost'],
['GET', '/[cid:page]', 'Controllerpage#read', 'pageread'],
['GET', '/[cid:page]/add', 'Controllerpage#add', 'pageadd'],
['GET', '/[cid:page]/add:[cid:copy]', 'Controllerpage#addascopy', 'pageaddascopy'],
Expand Down
4 changes: 2 additions & 2 deletions app/view/templates/pagepassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<h1>This page is password protected</h1>

<form action="<?= $this->url('pageread/post', ['page' => $pageid]) ?>" method="post">
<form action="<?= $this->url('pagereadpost', ['page' => $pageid]) ?>" method="post">
<label for="pagepassword">Page password</label>
<input type="password" name="pagepassword" id="pagepassword" autofocus required>
</form>
Expand All @@ -37,4 +37,4 @@

</body>

<?php $this->stop() ?>
<?php $this->stop() ?>

0 comments on commit 1acd192

Please sign in to comment.