From 7b2186a63e2c788f1f2622779c5a1c341117eac1 Mon Sep 17 00:00:00 2001 From: Sebastien SAUVAGE Date: Fri, 27 Sep 2013 17:08:31 +0200 Subject: [PATCH] Corrected field focus in bookmarklet Focus was not properly given to description field when it's empty. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 23a6294c..0465a4e5 100644 --- a/index.php +++ b/index.php @@ -1548,7 +1548,7 @@ 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 = (empty($_GET['description']) ? '' : $_GET['description'] )."\n"; // Get description if it was provided in URL (by the bookmarklet). [Bronco added that] + $description = (empty($_GET['description']) ? '' : $_GET['description']); // Get description if it was provided in URL (by the bookmarklet). [Bronco added that] $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); // Get tags if it was provided in URL $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL if (($url!='') && parse_url($url,PHP_URL_SCHEME)=='') $url = 'http://'.$url; -- 2.41.0