[curl/curl] 5c444a: curl_url_set: reject spaces in URLs, allow with flag

Daniel Stenberg <[email protected]> Sat, 15 May 2021 15:23:17 -0700
Newsgroups gmane.comp.web.curl.cvs
Message-ID <curl/curl/push/refs/heads/bagder/url_set-space/[email protected]>
  Branch: refs/heads/bagder/url_set-space
  Home:   https://github.com/curl/curl
  Commit: 5c444ab672d57f1df71aec11dc4bd2b2e2c0125c
      https://github.com/curl/curl/commit/5c444ab672d57f1df71aec11dc4bd2b2e2c0125c
  Author: Daniel Stenberg <[email protected]>
  Date:   2021-05-16 (Sun, 16 May 2021)

  Changed paths:
    M docs/libcurl/curl_url_set.3
    M docs/libcurl/symbols-in-versions
    M include/curl/urlapi.h
    M lib/transfer.c
    M lib/urlapi.c
    M tests/data/test1916
    M tests/data/test1917
    M tests/libtest/lib1560.c

  Log Message:
  -----------
  curl_url_set: reject spaces in URLs, allow with flag

They were never officially allowed and slipped in only due to sloppy
parsing. Spaces (ascii 32) should be correctly encoded (to %20) before
being part of a URL.

The new flag bit CURLU_ALLOW_SPACE when a full URL is set, makes libcurl
allow spaces.

Closes #7073


_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits