mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:23:40 +03:00
Fixed a couple more locale-dependent toupper conversions, mainly for
clarity. This does fix one problem that causes ;type=i FTP URLs to fail in the Turkish locale when CURLOPT_PROXY_TRANSFER_MODE is used (test case 561) Added tests 561 and 1092 through 1094 to test various combinations of ;type= and ;mode= URLs that could potentially fail in the Turkish locale.
This commit is contained in:
parent
6bb9ef8de4
commit
5591550167
17 changed files with 314 additions and 27 deletions
|
|
@ -2271,7 +2271,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
|||
if(checkprefix("ftp://", ppath) || checkprefix("ftps://", ppath)) {
|
||||
char *p = strstr(ppath, ";type=");
|
||||
if(p && p[6] && p[7] == 0) {
|
||||
switch (toupper((int)((unsigned char)p[6]))) {
|
||||
switch (Curl_raw_toupper(p[6])) {
|
||||
case 'A':
|
||||
case 'D':
|
||||
case 'I':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue