- Affected version
- 2.2.11
In practice, The
This set of changes means a logged in user can always craft search queries.
XF\Pub\Controller\Search::actionResults
endpoint is laregly a replica of the XF\Pub\Controller\Search::actionSearch
method, but with fewer checks.\XF::visitor()->canSearch()
is not checked.- When re-running search, it does not call
$searcher->isQueryEmpty()
and instead half bakes this depending on if it is a user vs a guest. - Search is always re-run for logged in users even for an empty query or if they are not allowed todo searches.
- The changed search check for guests (
$search->search_query !== $this->filter('q', 'str')
) is not sufficient to detect if this is a different search.
This set of changes means a logged in user can always craft search queries.