diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-02-10 11:31:45 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-02-18 19:34:33 +0100 |
commit | ed853da7fde6a05bb76d611863d8d91ab968fec2 (patch) | |
tree | 0736fd9fcee06f88e15e1b3a4aa65287a2f752de | |
parent | bfec695df1205864b46ca7175e1598b184602687 (diff) | |
download | Shaarli-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
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |