From: ArthurHoaro Date: Wed, 11 May 2016 20:10:31 +0000 (+0200) Subject: Don't redirect to ?post if ?addlink is reached while logged out X-Git-Tag: v0.7.0~5^2 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=465266243f84f5eb7e417dd3a34911856af01d25 Don't redirect to ?post if ?addlink is reached while logged out --- diff --git a/index.php b/index.php index 408aeae9..93e89709 100644 --- a/index.php +++ b/index.php @@ -1199,12 +1199,6 @@ function renderPage() exit; } - // Same case as above except that user tried to access ?do=addlink without being logged in - // Note: passing empty parameters makes Shaarli generate default URLs and descriptions. - if (isset($_GET['do']) && $_GET['do'] === 'addlink') { - header('Location: ?do=login&post='); - exit; - } showLinkList($PAGE, $LINKSDB); if (isset($_GET['edit_link'])) { header('Location: ?do=login&edit_link='. escape($_GET['edit_link']));