summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 54f0615)
raw | patch | inline | side by side (parent: 54f0615)
author | Florian Forster <ff@octo.it> | |
Wed, 28 Jul 2010 16:01:45 +0000 (18:01 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 28 Jul 2010 16:01:45 +0000 (18:01 +0200) |
src/utils_cgi.c | patch | blob | history |
diff --git a/src/utils_cgi.c b/src/utils_cgi.c
index 7c01bd9862a62518d679090948e57a755d29e41c..785191422c9e449a2d85995581a53675dbf3f26a 100644 (file)
--- a/src/utils_cgi.c
+++ b/src/utils_cgi.c
return (dest);
}
else if ((((unsigned char) src[in]) < 32)
+ || (src[in] == ' ')
|| (src[in] == '&')
|| (src[in] == ';')
|| (src[in] == '?')
return (dest);
} /* }}} char *uri_escape_copy */
+char *uri_escape_buffer (char *buffer, size_t buffer_size) /* {{{ */
+{
+ char temp[buffer_size];
+
+ uri_escape_copy (temp, buffer, buffer_size);
+ memcpy (buffer, temp, buffer_size);
+
+ return (&buffer[0]);
+} /* }}} char *uri_escape_buffer */
+
char *uri_escape (const char *string) /* {{{ */
{
char buffer[4096];