aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2016-05-13 08:38:30 +0200
committerArthur <arthur@hoa.ro>2016-05-13 08:38:30 +0200
commit6d449c8c81ad5a3a4b438e34282dcb2feed28c1d (patch)
treeb7d6e5f0fdc62486ebc78811f01307eb538d4df1 /index.php
parentd95533778d86bb6c6de3b14a9da35e6d6e6428bd (diff)
parent465266243f84f5eb7e417dd3a34911856af01d25 (diff)
downloadShaarli-6d449c8c81ad5a3a4b438e34282dcb2feed28c1d.tar.gz
Shaarli-6d449c8c81ad5a3a4b438e34282dcb2feed28c1d.tar.zst
Shaarli-6d449c8c81ad5a3a4b438e34282dcb2feed28c1d.zip
Merge pull request #562 from ArthurHoaro/hotfix/561
Don't redirect to ?post if ?addlink is reached while logged out
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/index.php b/index.php
index 408aeae9..93e89709 100644
--- a/index.php
+++ b/index.php
@@ -1199,12 +1199,6 @@ function renderPage()
1199 exit; 1199 exit;
1200 } 1200 }
1201 1201
1202 // Same case as above except that user tried to access ?do=addlink without being logged in
1203 // Note: passing empty parameters makes Shaarli generate default URLs and descriptions.
1204 if (isset($_GET['do']) && $_GET['do'] === 'addlink') {
1205 header('Location: ?do=login&post=');
1206 exit;
1207 }
1208 showLinkList($PAGE, $LINKSDB); 1202 showLinkList($PAGE, $LINKSDB);
1209 if (isset($_GET['edit_link'])) { 1203 if (isset($_GET['edit_link'])) {
1210 header('Location: ?do=login&edit_link='. escape($_GET['edit_link'])); 1204 header('Location: ?do=login&edit_link='. escape($_GET['edit_link']));