]> sourceware.org Git - newlib-cygwin.git/commitdiff
Fix handling of '+' by 'cygcheck -p'
authorJon Turney <jon.turney@dronecode.org.uk>
Mon, 30 Jan 2017 15:04:28 +0000 (15:04 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Tue, 31 Jan 2017 19:55:38 +0000 (19:55 +0000)
The form data sent to the server should be application/x-www-form-urlencoded

This replaces spaces with '+' before being RFC 1738 encoded, so a literal
'+' must be %-encoded also.

See https://cygwin.com/ml/cygwin/2014-01/msg00287.html et seq.

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
winsup/utils/cygcheck.cc

index d1e27b7e906c801a553218cbe305b792083c7377..e745b20e55338dba96fcd9a276a0eeeed8921119 100644 (file)
@@ -2009,8 +2009,8 @@ check_keys ()
   return 0;
 }
 
-/* RFC1738 says that these do not need to be escaped.  */
-static const char safe_chars[] = "$-_.+!*'(),";
+/* These do not need to be escaped in application/x-www-form-urlencoded */
+static const char safe_chars[] = "$-_.!*'(),";
 
 /* the URL to query.  */
 static const char base_url[] =
This page took 0.0345 seconds and 5 git commands to generate.