Fix handling of '+' by 'cygcheck -p'

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>
This commit is contained in:
Jon Turney 2017-01-30 15:04:28 +00:00
parent aade9a4fe1
commit a15297381d
1 changed files with 2 additions and 2 deletions

View File

@ -2009,8 +2009,8 @@ check_keys ()
return 0; return 0;
} }
/* RFC1738 says that these do not need to be escaped. */ /* These do not need to be escaped in application/x-www-form-urlencoded */
static const char safe_chars[] = "$-_.+!*'(),"; static const char safe_chars[] = "$-_.!*'(),";
/* the URL to query. */ /* the URL to query. */
static const char base_url[] = static const char base_url[] =