Skip to content

Commit 6b95dc6

Browse files
committed
A little more port defense in FULL-PROXY-PATH.
1 parent 76bdbda commit 6b95dc6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

quicklisp/http.lisp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -322,12 +322,13 @@
322322

323323
(defun full-proxy-path (host port path)
324324
(format nil "~:[http~;https~]://~A~:[:~D~;~*~]~A"
325-
(eql port 443)
326-
host
327-
(or (eql port 80)
328-
(eql port 443))
329-
port
330-
path))
325+
(eql port 443)
326+
host
327+
(or (null port)
328+
(eql port 80)
329+
(eql port 443))
330+
port
331+
path))
331332

332333
(defun user-agent-string ()
333334
"Return a string suitable for using as the User-Agent value in HTTP

0 commit comments

Comments
 (0)