From b607a4c5038c4a48d94fdf01cc1570725d803dd0 Mon Sep 17 00:00:00 2001 From: Bronco Date: Mon, 16 Sep 2013 10:32:02 +0200 Subject: [PATCH] Added the possibility to put a description in the bookmarklet's URL Conflicts: index.php --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 4b1a04b..a948f87 100644 --- a/index.php +++ b/index.php @@ -1561,7 +1561,8 @@ function renderPage() $link_is_new = true; // This is a new link $linkdate = strval(date('Ymd_His')); $title = (empty($_GET['title']) ? '' : $_GET['title'] ); // Get title if it was provided in URL (by the bookmarklet). - $description=''; $tags=''; $private=0;$via = ''; + $description = (empty($_GET['description']) ? '' : $_GET['description'] )."\n"; // Get description if it was provided in URL (by the bookmarklet). [Bronco added that] + $tags=''; $private=0; if (($url!='') && parse_url($url,PHP_URL_SCHEME)=='') $url = 'http://'.$url; // If this is an HTTP link, we try go get the page to extact the title (otherwise we will to straight to the edit form.) if (empty($title) && parse_url($url,PHP_URL_SCHEME)=='http')