Don't redirect to ?post if ?addlink is reached while logged out
This commit is contained in:
parent
d95533778d
commit
465266243f
1 changed files with 0 additions and 6 deletions
|
@ -1199,12 +1199,6 @@ function renderPage()
|
||||||
exit;
|
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);
|
showLinkList($PAGE, $LINKSDB);
|
||||||
if (isset($_GET['edit_link'])) {
|
if (isset($_GET['edit_link'])) {
|
||||||
header('Location: ?do=login&edit_link='. escape($_GET['edit_link']));
|
header('Location: ?do=login&edit_link='. escape($_GET['edit_link']));
|
||||||
|
|
Loading…
Reference in a new issue