don't respond to autocomplete requests for blank string
This commit is contained in:
parent
8fcf721045
commit
3c3529a4cc
@ -46,7 +46,7 @@ class TagList extends Extension {
|
||||
$this->theme->display_page($page);
|
||||
}
|
||||
else if($event->page_matches("api/internal/tag_list/complete")) {
|
||||
if(!isset($_GET["s"])) return;
|
||||
if(!isset($_GET["s"]) || $_GET["s"] == "" || $_GET["s"] == "_") return;
|
||||
|
||||
//$limit = 0;
|
||||
$cache_key = "autocomplete-" . strtolower($_GET["s"]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user