diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1558,6 +1558,8 @@ function renderPage() | |||
1558 | } | 1558 | } |
1559 | // Remove multiple spaces. | 1559 | // Remove multiple spaces. |
1560 | $tags = trim(preg_replace('/\s\s+/', ' ', $_POST['lf_tags'])); | 1560 | $tags = trim(preg_replace('/\s\s+/', ' ', $_POST['lf_tags'])); |
1561 | // Remove first '-' char in tags. | ||
1562 | $tags = preg_replace('/(^| )\-/', '$1', $tags); | ||
1561 | // Remove duplicates. | 1563 | // Remove duplicates. |
1562 | $tags = implode(' ', array_unique(explode(' ', $tags))); | 1564 | $tags = implode(' ', array_unique(explode(' ', $tags))); |
1563 | $linkdate = $_POST['lf_linkdate']; | 1565 | $linkdate = $_POST['lf_linkdate']; |