Commit de92bb09 authored by Kurt Pattyn's avatar Kurt Pattyn Committed by The Qt Project
Browse files

Check on newline characters in origin and urls


New line characters (\r\n) in the resource part of a url and in the origin
string can be used to forge the http header and can lead to insertion of
unwanted header entries. This can be an indication of an attack,
so QWebSocket immediately refuses a connection.

Change-Id: I9cdb309bfbe7025ad675925e6ea3e038476a1fd6
Reviewed-by: default avatarFrederik Gladhorn <frederik.gladhorn@digia.com>
Showing with 175 additions and 20 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment