projects
/
puri.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add US-ASCII unprintable control characters to the exlusion list per RFC2396 2.4.3
[puri.git]
/
tests.lisp
diff --git
a/tests.lisp
b/tests.lisp
index b5cbe37e8132ddff3ae926c89c226e0d384811de..77d19612ad56fb7af08b630a51503ad1c5712adb 100644
(file)
--- a/
tests.lisp
+++ b/
tests.lisp
@@
-408,6
+408,16
@@
:condition-type 'uri-parse-error)
res)
:condition-type 'uri-parse-error)
res)
+
+ ;;an escaped newline isn't rendered properly
+ (push
+ `(let ((weird-uri "https://example.com/q?foo%0abar%20baz"))
+ (test
+ weird-uri
+ (puri:render-uri (puri:parse-uri weird-uri) nil)
+ :test #'string=)
+ ) res)
+
`(progn ,@(nreverse res))))
(defun do-tests ()
`(progn ,@(nreverse res))))
(defun do-tests ()