Tab character in query log search field leads to an error popup

As the title says.
(Accidently) pasting a string with tab character into the query log search field results in an http/400 error popup.
It's the same in the current release and on the dev branch.

Strange.
I tried to replicate the issue, but nothing happened.

  • What browser are you using?
  • Can you replicate using different browsers or on different devices?
  • Do you see any error messages in devtools Console?

I should have mentioned that I've running Pi-hole behind a lighttpd reverse proxy.

After further debugging it turned out that lighttpd by default do not allow „percent-encoded control characters“ in the URI and returnes the 400 error.

The solution was to add the following to my reverse proxy config:

server.http-parseopts = ( "url-ctrls-reject" => "disable", "url-path-2f-decode" => "disable" )

OK.
Then I'll mark the topic as solved.

Feel free to add more comments if you feel the issue is still not resolved.

1 Like

Apparently a similar solution is needed for apache2: https://www.reddit.com/r/pihole/comments/1jkge31/pihole_apache_reverse_proxy_and_404_errors/