Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaping for user agent and referer #14

Open
Dobatymo opened this issue Mar 16, 2017 · 0 comments
Open

Escaping for user agent and referer #14

Dobatymo opened this issue Mar 16, 2017 · 0 comments

Comments

@Dobatymo
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant