aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-05-16 12:55:29 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commit72caf4e84c412ab6a4181b83a96dbef8ebb3c65a (patch)
tree16b213e8a22b4a1f5c6f9f48fc1a8542464bf470 /index.php
parentc266a89d0fbb0d60d2d7df0ec171b7cb022224f6 (diff)
downloadShaarli-72caf4e84c412ab6a4181b83a96dbef8ebb3c65a.tar.gz
Shaarli-72caf4e84c412ab6a4181b83a96dbef8ebb3c65a.tar.zst
Shaarli-72caf4e84c412ab6a4181b83a96dbef8ebb3c65a.zip
Working version before optimization
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 83f1264f..423a68f4 100644
--- a/index.php
+++ b/index.php
@@ -852,7 +852,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM
852 // Show login screen, then redirect to ?post=... 852 // Show login screen, then redirect to ?post=...
853 if (isset($_GET['post'])) { 853 if (isset($_GET['post'])) {
854 header( // Redirect to login page, then back to post link. 854 header( // Redirect to login page, then back to post link.
855 'Location: /login?post='.urlencode($_GET['post']). 855 'Location: ./login?post='.urlencode($_GET['post']).
856 (!empty($_GET['title'])?'&title='.urlencode($_GET['title']):''). 856 (!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').
857 (!empty($_GET['description'])?'&description='.urlencode($_GET['description']):''). 857 (!empty($_GET['description'])?'&description='.urlencode($_GET['description']):'').
858 (!empty($_GET['tags'])?'&tags='.urlencode($_GET['tags']):''). 858 (!empty($_GET['tags'])?'&tags='.urlencode($_GET['tags']):'').
@@ -863,7 +863,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM
863 863
864 showLinkList($PAGE, $bookmarkService, $conf, $pluginManager, $loginManager); 864 showLinkList($PAGE, $bookmarkService, $conf, $pluginManager, $loginManager);
865 if (isset($_GET['edit_link'])) { 865 if (isset($_GET['edit_link'])) {
866 header('Location: /login?edit_link='. escape($_GET['edit_link'])); 866 header('Location: ./login?edit_link='. escape($_GET['edit_link']));
867 exit; 867 exit;
868 } 868 }
869 869