redirect_url(): Check the actual URL when https inspecting requests
authorFabian Keil <fk@fabiankeil.de>
Tue, 15 Dec 2020 18:00:00 +0000 (19:00 +0100)
committerFabian Keil <fk@fabiankeil.de>
Wed, 16 Dec 2020 17:13:25 +0000 (18:13 +0100)
commit89da19109b8d75c69ed4b5c8f0e81842b7e5224e
tree9b0cb0d98ac5d8644e1e0038709d250b258c8906
parent2b20227c4761fe24a75b65620d9469b6290cc7f5
redirect_url(): Check the actual URL when https inspecting requests

Previously we would only check the path which resulted
in rewrite results being rejected as invalid URLs.

Before:
19:37:29.494 014 Error: pcrs command "s@/test@/@" changed "/test" to "/" (1 hit), but the result doesn't look like a valid URL and will be ignored.

After:
19:40:57.857 002 Redirect: pcrs command s@/test@/@ changed https://www.electrobsd.org/test to https://www.electrobsd.org/ (1 hit).

Reported by withoutname in #1736.
filters.c