Skip to content

TS-4143 Validate host in GET URL#430

Closed
danobi wants to merge 1 commit intoapache:masterfrom
danobi:TS-4143
Closed

TS-4143 Validate host in GET URL#430
danobi wants to merge 1 commit intoapache:masterfrom
danobi:TS-4143

Conversation

@danobi
Copy link
Copy Markdown
Member

@danobi danobi commented Jan 20, 2016

Also moved all the host validation logic to URL.cc since HTTP.cc
inherits from URL.cc.

Comment thread proxy/hdrs/URL.cc Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here the condition should be to check host._size first and then for validate_host_hdr either set the host (if success) or generate an error (if false). It is acceptable to not have a host at all in the URL, but it is unacceptable (an error) if there is a host and it's malformed.

Also moved all the host validation logic to URL.cc since HTTP.cc
inherits from URL.cc.
@asfgit asfgit closed this in 46edfde Jan 22, 2016
SolidWallOfCode pushed a commit to SolidWallOfCode/trafficserver that referenced this pull request Apr 13, 2017
Ftywan pushed a commit to Ftywan/trafficserver that referenced this pull request Dec 21, 2022
* s3_auth: accept longer config lines

* Tell CI to ignore intentional trailing spaces

Rename v4-parse-test.conf to .test_input

* Address PR review comments

* Remove spurious os import

Co-authored-by: Mo Chen <uncorrupt@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants