| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
- Fix unit test.
|
|
|
|
| |
- Rename utf8len function to utf8_strict_codepoint_count.
|
|
|
|
|
|
|
|
|
|
|
| |
- Add a unit test.
There is some question about whether we should be returning a better
error (currently, the validation error, IDNA_STRINGPREP_ERROR, gets lost
because the only action we take on invalid input is to not convert
non-ascii hostnames, which eventually causes a dns failure; that's what
gets reported). The unit test for the fix thus tests dns failure instead
of looking for a specific error from utf8 validation.
|
|
|
|
| |
- Move utf8len from url.c to non-ascii.c
|
|
|
|
| |
- Refactor utf8len for less lines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix bug in utf8len: Return error when another character in the
sequence is expected but that character is null. That is what I had
initally intended, but I made a mistake with the logic.
- Convert locale to UTF-8 then check if UTF-8 is valid.
My understanding of the conversion from locale to UTF-8 is that if the
locale string which is eventually passed from libidn to libiconv as
'from_codeset' is determined to be UTF-8 then (according to the reporter
Thijs Alkemade) no conversion will happen since the 'to_codeset' is
"UTF-8".
So, we can only check for valid UTF-8 after we're sure we have UTF-8.
The alternative here I guess would be to second guess iconv which could
lead to bugs as Daniel noted on the wget mailing list, or just call it
directly like Alessandro has done.
|
|
|
|
|
|
|
|
|
|
| |
- New function utf8len.
Return the number of UTF-8 characters or -1 if invalid.
- Don't call idna_to_ascii_lz if UTF-8 hostname is invalid UTF-8.
- TODO: Some new or existing function (shown as codepage_is_utf8 in
this draft) to check if the libidn current codepage is UTF-8.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
setup-vms.h: Symbol case fixups submitted by Michael Steve
build_gnv_curl_pcsi_desc.com: VSI aka as VMS Software, is now the
supplier of new versions of VMS. The install kit needs to accept
VSI as a producer.
|
|
|
|
|
|
| |
This change necessary for binary compatibility.
Prior to this change test 1135 failed due to the order of functions.
|
|
|
|
| |
Prior to this change test 1119 failed due to the missing symbols.
|
| |
|
|
|
|
|
|
|
| |
For security reasons, until there is a fix.
Bug: http://curl.haxx.se/mail/lib-2015-06/0143.html
Reported-by: Gustavo Grieco, Feist Josselin
|
| |
|
|
|
|
|
|
| |
Just to underscore how we treat each other in this project. Nothing new
really, but could be useful for newcomers and outsiders to see our
values.
|
|
|
|
|
|
|
|
| |
Flush the header stream when -D is used so that they are sent off
earlier.
Bug: https://github.com/bagder/curl/issues/324
Reported-by: Cédric Connes
|
| |
|
|
|
|
|
| |
Reported-by: bemoody
Bug: https://github.com/bagder/curl/issues/325
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Since we do prefix match using given header by application code
against header name pair in format "NAME:VALUE", and VALUE part can
contain ":", we have to careful about existence of ":" in header
parameter. ":" should be allowed to match HTTP/2 pseudo-header field,
and other use of ":" in header must be treated as error, and
curl_pushheader_byname should return NULL. This commit implements
this behaviour.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Following the fix made in 903b6e05565bf.
|
|
|
|
|
|
|
|
| |
... to properly support that options are set to the handle after it is
added to the multi handle.
Bug: http://curl.haxx.se/mail/lib-2015-06/0122.html
Reported-by: Stefan Bühler
|
| |
|
|
|
|
|
|
|
|
|
| |
Advise that WinSSL in versions <= XP will not be able to connect to
servers that no longer support the legacy handshakes and algorithms used
by those versions, and to use an alternate backend like OpenSSL instead.
Bug: https://github.com/bagder/curl/issues/253
Reported-by: zenden2k <zenden2k@gmail.com>
|
|
|
|
| |
... in commit curl-7_43_0-18-g570076e
|
| |
|
|
|
|
|
|
|
|
|
| |
In 3013bb6 I had changed cookie export to ignore any-domain cookies,
however the logic I used to do so was incorrect, and would lead to a
busy loop in the case of exporting a cookie list that contained
any-domain cookies. The result of that is worse though, because in that
case the other cookies would not be written resulting in an empty file
once the application is terminated to stop the busy loop.
|
| |
|
|
|
|
|
| |
libcurl can still be built with it, even if the tool is not. Maintain
independence!
|
| |
|
|
|
|
|
| |
It is similar to existing CURL_CFLAG_EXTRAS, but for
extra linker option.
|
|
|
|
| |
Coverity CID 1306668
|
|
|
|
|
|
|
|
| |
Make sure that the error buffer is always initialized and simplify the
use of it to make the logic easier.
Bug: https://github.com/bagder/curl/issues/318
Reported-by: sneis
|
| |
|
|
|
|
|
| |
Using this fixed format for example descriptions, we can generate a
better list on the web site.
|
| |
|
| |
|