Project

General

Profile

[Solved] Encoded Umlaut in URL param

Added by elmar69 5 months ago

How can I resolve the 400 "Bad Request" error risen once the url-parameter does contain an encoded Umlaut as in "f%FCr". Error vanishes if the "%FC" is removed or replaced.


Replies (1)

RE: Encoded Umlaut in URL param - Added by gstrauss 5 months ago

How can I resolve the 400 "Bad Request" error risen once the url-parameter does contain an encoded Umlaut as in "f%FCr". Error vanishes if the "%FC" is removed or replaced.

%FC when url-decoded is an invalid byte in a UTF-8 sequence.

It sounds like your url encoder is broken. You should be url-encoding UTF-8. If you're not url-encoding UTF-8, then you should convert your string to UTF-8 and then url-encode for the URL.

If you can't fix the URL and you understand the security implications of passing invalid UTF-8 in your environment, then see server.parseopts "url-invalid-utf8-reject"

    (1-1/1)