Skip to content

Commit

Permalink
Check URI scheme when redirecting.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Aug 4, 2015
1 parent 25c5f9a commit 8da3d70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/usocket.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,9 @@

(let ((location-uri (quri:uri (gethash "location" response-headers))))
(if (or (null (uri-host location-uri))
(and (string= (uri-host location-uri)
(and (string= (uri-scheme location-uri)
(uri-scheme uri))
(string= (uri-host location-uri)
(uri-host uri))
(eql (uri-port location-uri)
(uri-port uri))))
Expand Down

0 comments on commit 8da3d70

Please sign in to comment.