From 1acd1922063deac4f4b9b52ad04c6b5fb911a839 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 7 Nov 2023 12:42:41 +0100 Subject: [PATCH] remove trailing slash of password pages fix #360 --- app/class/Routes.php | 2 +- app/view/templates/pagepassword.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/class/Routes.php b/app/class/Routes.php index 059482fc..f41f1dcb 100644 --- a/app/class/Routes.php +++ b/app/class/Routes.php @@ -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'], diff --git a/app/view/templates/pagepassword.php b/app/view/templates/pagepassword.php index 6404c41e..ce9aa9d4 100644 --- a/app/view/templates/pagepassword.php +++ b/app/view/templates/pagepassword.php @@ -27,7 +27,7 @@

This page is password protected

-
+
@@ -37,4 +37,4 @@ -stop() ?> \ No newline at end of file +stop() ?>