]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #566 from ArthurHoaro/md-inline-code
authorArthur <arthur@hoa.ro>
Fri, 13 May 2016 18:00:52 +0000 (20:00 +0200)
committerArthur <arthur@hoa.ro>
Fri, 13 May 2016 18:00:52 +0000 (20:00 +0200)
Markdown: inline code background color

index.php

index 408aeae9ca7bcf6cde2b6c8190cabd56bc9fc761..93e897098b869d2c592ca5a8edbd74b95a3fc9e8 100644 (file)
--- 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']));