aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2016-02-15 21:12:39 +0100
committerArthur <arthur@hoa.ro>2016-02-15 21:12:39 +0100
commit1e7331126d81a5759ab91c221f7e0f164aeebfb5 (patch)
treea5d084066e1e49fae01ae72f102b3eab2fb6d8ac /index.php
parent6e607ca613b47e17f7516e94adfee930d4f3e1e8 (diff)
parentce354bf1a61ce2478529ad558b24cdf9678c398a (diff)
downloadShaarli-1e7331126d81a5759ab91c221f7e0f164aeebfb5.tar.gz
Shaarli-1e7331126d81a5759ab91c221f7e0f164aeebfb5.tar.zst
Shaarli-1e7331126d81a5759ab91c221f7e0f164aeebfb5.zip
Merge pull request #446 from ArthurHoaro/search-tag-exclude
Add exclusion in tag search
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index 4382bd80..d9fe5bc2 100644
--- a/index.php
+++ b/index.php
@@ -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'];