From 07f99432b7b0c75935b758b20a30c3e0007bac13 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 17 May 2020 11:11:57 +0200 Subject: [PATCH] Slim daily: support legacy query parameter --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index f8337d79..dbb76d3f 100644 --- a/index.php +++ b/index.php @@ -522,7 +522,8 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM // Daily page. if ($targetPage == Router::$PAGE_DAILY) { - header('Location: ./daily'); + $dayParam = !empty($_GET['day']) ? '?day=' . escape($_GET['day']) : ''; + header('Location: ./daily'. $dayParam); exit; } -- 2.41.0