fukamachi/quri

uri-path can leak into uri-host

ralt opened this issue · 2 comments

ralt commented

I think it would make sense to have some sort of error in this sort of situation?

CL-USER> (quri:render-uri (quri:make-uri :scheme "https" :host "foo.com" :path "foo/bar"))
"https://foo.comfoo/bar"
CL-USER> (quri:uri-host (quri:uri (quri:render-uri (quri:make-uri :scheme "https" :host "foo.com" :path "foo/bar"))))
"foo.comfoo"

I have a fix here: Ambrevar@a3b7790

Fixed in a3b7790.