wsgi-request-logger icon indicating copy to clipboard operation
wsgi-request-logger copied to clipboard

Escaping for user agent and referer

Open Dobatymo opened this issue 7 years ago • 0 comments

If the user agent or referer include double quotes ("), the log entries become unparsable because the quotes are not escaped and will look like 127.0.0.1 - - [16/Mar/2017:15:39:18 +0000] "GET / HTTP/1.1" 200 233 "ref" "erer" "user"agent" Some simple backslash escaping (" and \) should be fine

The same issue might apply for requests, but i didn't check.

Dobatymo avatar Mar 16 '17 07:03 Dobatymo