aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-02-10 11:31:45 +0100
committerArthurHoaro <arthur@hoa.ro>2016-02-18 19:34:33 +0100
commited853da7fde6a05bb76d611863d8d91ab968fec2 (patch)
tree0736fd9fcee06f88e15e1b3a4aa65287a2f752de /index.php
parentbfec695df1205864b46ca7175e1598b184602687 (diff)
downloadShaarli-ed853da7fde6a05bb76d611863d8d91ab968fec2.tar.gz
Shaarli-ed853da7fde6a05bb76d611863d8d91ab968fec2.tar.zst
Shaarli-ed853da7fde6a05bb76d611863d8d91ab968fec2.zip
Fixes #468: don't trim description
Spaces at the start of shaares can be intended. Eg: markdown plugin. #468
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 3a63319c..b44cd555 100644
--- a/index.php
+++ b/index.php
@@ -1588,7 +1588,7 @@ function renderPage()
1588 $link = array( 1588 $link = array(
1589 'title' => trim($_POST['lf_title']), 1589 'title' => trim($_POST['lf_title']),
1590 'url' => $url, 1590 'url' => $url,
1591 'description' => trim($_POST['lf_description']), 1591 'description' => $_POST['lf_description'],
1592 'private' => (isset($_POST['lf_private']) ? 1 : 0), 1592 'private' => (isset($_POST['lf_private']) ? 1 : 0),
1593 'linkdate' => $linkdate, 1593 'linkdate' => $linkdate,
1594 'tags' => str_replace(',', ' ', $tags) 1594 'tags' => str_replace(',', ' ', $tags)