diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-05-16 12:55:29 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | 72caf4e84c412ab6a4181b83a96dbef8ebb3c65a (patch) | |
tree | 16b213e8a22b4a1f5c6f9f48fc1a8542464bf470 /index.php | |
parent | c266a89d0fbb0d60d2d7df0ec171b7cb022224f6 (diff) | |
download | Shaarli-72caf4e84c412ab6a4181b83a96dbef8ebb3c65a.tar.gz Shaarli-72caf4e84c412ab6a4181b83a96dbef8ebb3c65a.tar.zst Shaarli-72caf4e84c412ab6a4181b83a96dbef8ebb3c65a.zip |
Working version before optimization
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||