X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=6b02942f99359629cd11370f931e0d74b5d902d4;hb=765391cb376500a8372aedd426dd4bfbe04ee8ec;hp=85064e2e8a14c5feaa8db7776aef8ee8dd25ae71;hpb=5046bcb6ab324a6b52669b2b76a41665022f653a;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 85064e2e..6b02942f 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']));