diff options
-rw-r--r-- | index.php | 6 | ||||
-rw-r--r-- | plugins/markdown/markdown.css | 7 |
2 files changed, 7 insertions, 6 deletions
@@ -1199,12 +1199,6 @@ function renderPage() | |||
1199 | exit; | 1199 | exit; |
1200 | } | 1200 | } |
1201 | 1201 | ||
1202 | // Same case as above except that user tried to access ?do=addlink without being logged in | ||
1203 | // Note: passing empty parameters makes Shaarli generate default URLs and descriptions. | ||
1204 | if (isset($_GET['do']) && $_GET['do'] === 'addlink') { | ||
1205 | header('Location: ?do=login&post='); | ||
1206 | exit; | ||
1207 | } | ||
1208 | showLinkList($PAGE, $LINKSDB); | 1202 | showLinkList($PAGE, $LINKSDB); |
1209 | if (isset($_GET['edit_link'])) { | 1203 | if (isset($_GET['edit_link'])) { |
1210 | header('Location: ?do=login&edit_link='. escape($_GET['edit_link'])); | 1204 | header('Location: ?do=login&edit_link='. escape($_GET['edit_link'])); |
diff --git a/plugins/markdown/markdown.css b/plugins/markdown/markdown.css index 3c1b2aeb..6789ce84 100644 --- a/plugins/markdown/markdown.css +++ b/plugins/markdown/markdown.css | |||
@@ -143,6 +143,13 @@ | |||
143 | hyphens: none; | 143 | hyphens: none; |
144 | } | 144 | } |
145 | 145 | ||
146 | .markdown :not(pre) code { | ||
147 | background-color: #eee; | ||
148 | padding: 1px 3px; | ||
149 | border-radius: 1px; | ||
150 | box-shadow: 0 -1px 0 #e5e5e5,0 0 1px rgba(0,0,0,0.12),0 1px 1px rgba(0,0,0,0.24); | ||
151 | } | ||
152 | |||
146 | .md_help { | 153 | .md_help { |
147 | color: white; | 154 | color: white; |
148 | } | 155 | } |