diff options
-rw-r--r-- | index.php | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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'])); |