chiark
/
gitweb
/
~mdw
/
mLib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1101f87
)
Make `#' a special character which needs escaping.
author
mdw
<mdw>
Fri, 3 Sep 1999 08:02:05 +0000
(08:02 +0000)
committer
mdw
<mdw>
Fri, 3 Sep 1999 08:02:05 +0000
(08:02 +0000)
url.c
patch
|
blob
|
blame
|
history
diff --git
a/url.c
b/url.c
index 5c226015c27921c61bf6219e2a8eea65d0c6ef31..75b6ff9872de4d0de5e1a7dd9a55a2df4ee4b1c8 100644
(file)
--- a/
url.c
+++ b/
url.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: url.c,v 1.
1 1999/06/01 09:49:48
mdw Exp $
+ * $Id: url.c,v 1.
2 1999/09/03 08:02:05
mdw Exp $
*
* Parsing and construction of url-encoded name/value pairs
*
*
* Parsing and construction of url-encoded name/value pairs
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: url.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: url.c,v $
+ * Revision 1.2 1999/09/03 08:02:05 mdw
+ * Make `#' a special character which needs escaping.
+ *
* Revision 1.1 1999/06/01 09:49:48 mdw
* New files for url-encoding and decoding.
*
* Revision 1.1 1999/06/01 09:49:48 mdw
* New files for url-encoding and decoding.
*
@@
-85,6
+88,7
@@
static void encode(dstr *d, const char *p)
case '+':
case '=':
case '%':
case '+':
case '=':
case '%':
+ case '#':
dstr_putf(d, "%%%02x", *p);
break;
}
dstr_putf(d, "%%%02x", *p);
break;
}