{keywords} vs {keywords_clean}
EE 2.10.1
Low Search 4.4.0
I have a site where the popular tag is being used. However the popular search is turning up database queries. Obviously someone trying to hack the site.
I checked the docs and am wondering if using {keywords_clean} will not display these results or if there is another way to filter so it doesn't include these sort of queries.
current template code is:
{exp:low_search:popular limit="6"}
<li {if count > 4}class="hidden-tablet"{/if}><a class="same-height" href="{path=/explore/results?keywords={keywords}}"><span>{keywords}</span></a></li>
{/exp:low_search:popular}
Replies
Low 1 Mar 2018 14:04
{keywords_clean} will return the keywords without diacritics, punctuation etc. It will not filter out "unwanted" words. There is currently no built-in way to not display search queries like that.
Sean 1 Mar 2018 14:05
That's kind of what I expected. Thanks for the super quick response Low.