]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Slim daily: support legacy query parameter
authorArthurHoaro <arthur@hoa.ro>
Sun, 17 May 2020 09:11:57 +0000 (11:11 +0200)
committerArthurHoaro <arthur@hoa.ro>
Thu, 23 Jul 2020 19:19:21 +0000 (21:19 +0200)
index.php

index f8337d79a6bc6f700ee1bd63afcf2014c0188ce4..dbb76d3f37638e210bf71acfd613f1516ad859b2 100644 (file)
--- 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;
     }