]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #559 from ArthurHoaro/startsEndWithCase
authorArthur <arthur@hoa.ro>
Sat, 14 May 2016 09:09:03 +0000 (11:09 +0200)
committerArthur <arthur@hoa.ro>
Sat, 14 May 2016 09:09:03 +0000 (11:09 +0200)
Fix startsWith and endsWith case

index.php
plugins/markdown/markdown.css

index 85064e2e8a14c5feaa8db7776aef8ee8dd25ae71..6b02942f99359629cd11370f931e0d74b5d902d4 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']));
index 3c1b2aeb2bd90a414addb9dde31c3f63b88a8a69..6789ce841cbd7e5394ee73fb238d5bc7254213a4 100644 (file)
     hyphens: none;  
 }
 
+.markdown :not(pre) code {
+    background-color: #eee;
+    padding: 1px 3px;
+    border-radius: 1px;
+    box-shadow: 0 -1px 0 #e5e5e5,0 0 1px rgba(0,0,0,0.12),0 1px 1px rgba(0,0,0,0.24);
+}
+
 .md_help {
     color: white;
 }