forked from Cavemanon/cavepaintings
make it more explicit that caret/decaret are for encoding tags into URL paths
This commit is contained in:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user