disable all search results from when pressing enter.

When a person visits the search page and they press enter without typing a search keyword, all public content from the entire site shows up even if that person is not a member or logged in. For example, try this after logging out of UNA. Go to this url and click in the search box and just press enter. Then try it on your own site. This is a big deal especially for private sites because there is no way to stop it. And it also happens in the lucid template with the navigation search icon and on mobile phones in the search box on the mobile menu. There needs to be a setting to disallow this.

https://una.io/searchKeyword.php 

  • 340
  • More
Replies (2)
    • That is problem i found it to because space in empty search box give strange result. 

      • Yes, and I tried renaming the searchKeyword.php to completely disable the search, but then it affected the conversations app. Without it, I can't choose a member to send a message to.

        Login or Join to comment.