Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rfc2388-binary
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ucw
rfc2388-binary
Commits
5bd5d3cf
Commit
5bd5d3cf
authored
18 years ago
by
Marco Baringer
Browse files
Options
Downloads
Patches
Plain Diff
Fix handling of escape characters in header-values
darcs-hash:3dfa4bc3f19a3533117a879fc58728844c312d9a
parent
9f0a95cd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/rfc2388.lisp
+4
-2
4 additions, 2 deletions
source/rfc2388.lisp
with
4 additions
and
2 deletions
source/rfc2388.lisp
+
4
−
2
View file @
5bd5d3cf
...
...
@@ -360,7 +360,7 @@ The returned strings may actually be displaced arrays."
(
defun
parse-key-values
(
key-value-string
)
"Returns an alist of the keys and values in KEY-VALUE-STRING.
KEY-VALUE-STRING is of the form: (\w+=\
w+
;)*"
KEY-VALUE-STRING is of the form: (\w+=\
"\w+\"
;)*"
(
declare
(
optimize
(
speed
3
)
(
safety
0
)
(
debug
0
))
(
type
(
array
character
(
*
))
key-value-string
))
(
flet
((
make-adjustable-string
(
&optional
(
default-size
20
))
...
...
@@ -382,7 +382,9 @@ KEY-VALUE-STRING is of the form: (\w+=\w+;)*"
(
setf
key
(
make-adjustable-string
)
value
(
make-adjustable-string
))))
(
if
(
eql
:escape
state
)
(
extend
value
)
(
progn
(
extend
value
)
(
setf
state
:in-double-quote
))
(
case
char
(
#\=
(
ecase
state
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment