I was wondering why request->pathInfo is going through decodePathInfo() but urlReferrer does not?
Is the prominent use case of urlReferrer is to use it with the encoded value? I do think so (or am I missing something).
So, in case I didn’t miss anything important above, I guess urlReferrer should be processed with a urldecode() or similar.
I can open a bug for this - just let me know.