make it more explicit that caret/decaret are for encoding tags into URL paths

This commit is contained in:
Shish
2020-01-30 21:50:30 +00:00
parent fb80509be9
commit da42b19d6b
8 changed files with 70 additions and 73 deletions

View File

@@ -25,7 +25,7 @@ class Index extends Extension
if ($event->page_matches("post/list")) {
if (isset($_GET['search'])) {
// implode(explode()) to resolve aliases and sanitise
$search = url_escape(Tag::implode(Tag::explode($_GET['search'], false)));
$search = url_escape(Tag::caret(Tag::implode(Tag::explode($_GET['search'], false))));
if (empty($search)) {
$page->set_mode(PageMode::REDIRECT);
$page->set_redirect(make_link("post/list/1"));