]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fixes #468: don't trim description 470/head
authorArthurHoaro <arthur@hoa.ro>
Wed, 10 Feb 2016 10:31:45 +0000 (11:31 +0100)
committerArthurHoaro <arthur@hoa.ro>
Thu, 18 Feb 2016 18:34:33 +0000 (19:34 +0100)
Spaces at the start of shaares can be intended. Eg: markdown plugin.

#468

index.php

index 3a63319c63027fd3873896f9b1a3f12d9a5bd26a..b44cd555f086ab75f37097048678b8e191cfef43 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1588,7 +1588,7 @@ function renderPage()
         $link = array(
             'title' => trim($_POST['lf_title']),
             'url' => $url,
-            'description' => trim($_POST['lf_description']),
+            'description' => $_POST['lf_description'],
             'private' => (isset($_POST['lf_private']) ? 1 : 0),
             'linkdate' => $linkdate,
             'tags' => str_replace(',', ' ', $tags)