]> git.ipfire.org Git - thirdparty/curl.git/commit
urlapi: prevent setting invalid schemes with *url_set()
authorDaniel Stenberg <daniel@haxx.se>
Sat, 8 Apr 2023 22:38:00 +0000 (00:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 9 Apr 2023 21:23:54 +0000 (23:23 +0200)
commit826e8011d5417504fcd4b7c2769bf47e97768788
tree39aafdcf43cf6c581980fd50502f98fbaa9b1005
parent5023d7c9449e79b8eb953b0da4853ba711ec1825
urlapi: prevent setting invalid schemes with *url_set()

A typical mistake would be to try to set "https://" - including the
separator - this is now rejected as that would then lead to
url_get(... URL...) would get an invalid URL extracted.

Extended test 1560 to verify.

Closes #10911
lib/urlapi.c
tests/libtest/lib1560.c