Tim Rühsen
375bfa98dc
* src/url.c (convert_fname): Fix invalid free on iconv_open() failure
...
Reported-by: Volkmar Klatt
2018-03-01 16:03:29 +01:00
Tim Rühsen
bea54e0da4
* src/mswindows.c: Fix prototype of fork_to_background()
...
Reported-by: Gisle Vanem
2018-02-21 19:05:15 +01:00
Tim Rühsen
98ec26cc6d
Fix warning to not print binary IP address
...
* tests/Test-https-badcerts.px: Likewise
* tests/Test-https-clientcert.px: Likewise
* tests/Test-https-crl.px: Likewise
* tests/Test-https-pfs.px: Likewise
* tests/Test-https-selfsigned.px: Likewise
* tests/Test-https-tlsv1.px: Likewise
* tests/Test-https-tlsv1x.px: Likewise
* tests/Test-https-weboftrust.px: Likewise
2018-02-09 10:33:07 +01:00
Tim Rühsen
9887b870d1
Use gnulib's utime()
...
* bootstrap.conf: Add modules utime and utime-h
* src/utils.c (touch): Remove own code for gnulib's utime()
2018-02-09 10:21:43 +01:00
Tim Rühsen
c722973212
Fix logging in background mode
...
* ../src/main.c: Re-init logfile if changed for background mode
* ../src/utils.c: fork_to_background() returns whether logfile changed
* ../src/utils.h: Set return type bool for fork_to_background()
Fixes : #53020
Reported-by: Noël Köthe
2018-02-09 10:21:43 +01:00
Tim Rühsen
bb7fa977a1
* src/http.c: Fix two typos in comments
2018-02-09 10:18:35 +01:00
Tim Rühsen
f2d6075a6e
* testenv/conf/expected_files.py: Ignore pubring.gpg
...
Reported-by: Arkadiusz Miśkiewicz
2018-01-31 09:04:42 +01:00
Tim Rühsen
0caed28cda
* bootstrap.conf: Replace gnulib module gettext by gettext-h
2018-01-31 09:01:54 +01:00
Tim Rühsen
d27032c446
Mention list and bugtracker for --help and in man page
...
* doc/wget.texi: Mention list and bugtracker in man page
* src/main.c: Mention list and bugtracker for --help
2018-01-22 10:39:49 +01:00
Darshit Shah
080fd0d93b
* contrib/make-release: Add another release script
2018-01-21 13:50:45 +01:00
Darshit Shah
ab8a3c80df
Update NEWS file for new release
2018-01-21 11:00:29 +01:00
Darshit Shah
11ecabcb3d
Fix typo in documentation
2018-01-21 11:00:25 +01:00
Darshit Shah
d0a5d9f131
Switch off compression by default
...
Gzip compression has a number of bugs which need to be ironed out before
we can support it by default. Some of these stem from a misunderstanding
of the HTTP spec, but a lot of them are also due to many web servers not
being compliant with RFC 7231.
With this commit, I am marking GZip compression support as experimental
in GNU Wget pending further investigation and the addition of tests.
* src/init.c (defaults): Switch of compression support by default
* docs/wget.texi: State that compression is experimental
2018-01-21 10:51:11 +01:00
Darshit Shah
0ff71e5ff1
Pull gnulib module forward
2018-01-21 10:51:09 +01:00
Darshit Shah
0d0a95a01b
Revert "* src/init.c (defaults): Set compression_none as the default compression"
...
This reverts commit 8283ac0846
.
2018-01-21 10:50:44 +01:00
Darshit Shah
8283ac0846
* src/init.c (defaults): Set compression_none as the default compression
2018-01-21 10:17:39 +01:00
Reiji
a7cc4e2b37
* src/http.c (gethttp): Fix bug that prevented all files from being decompressed
...
Signed-off-by: Darshit Shah <darnir@gnu.org>
2018-01-20 14:04:28 +01:00
Tim Rühsen
55d25fc20c
* src/host.c (sufmatch): Fix to domain matching
2018-01-19 19:32:01 +01:00
Gisle Vanem
513cc1c0c8
* src/netrc.c: Fix Standalone compilation of netrc file
2018-01-17 14:44:52 +01:00
Darshit Shah
3249045a91
* NEWS: Update NEWS file for new release
2018-01-14 12:17:31 +01:00
Darshit Shah
b1fc37f465
* bootstrap: Use the faster gnulib-tool.py script if possible
2018-01-14 11:33:52 +01:00
Darshit Shah
953bcdaba8
Sync the bootstrap script from gnulib
2018-01-14 11:28:51 +01:00
Darshit Shah
183fccdaad
Update Copyright years
2018-01-14 11:24:43 +01:00
Darshit Shah
8240439e21
Replace HTTP urls with HTTPS where valid
2018-01-14 11:15:32 +01:00
Darshit Shah
a03716a0fe
Update gnulib
2018-01-14 11:15:16 +01:00
Darshit Shah
d26c6c0028
* src/netrc.c: Search for the correct netrc file on Windows
2018-01-14 10:55:03 +01:00
Tim Rühsen
047746eb76
* src/http.c: Exclude *.gz and *.tgz from decompression
2018-01-10 15:46:13 +01:00
Tim Rühsen
d8df356d4b
* src/utils.c (wg_pin_peer_pubkey): Fix format warning
2017-12-31 13:03:25 +01:00
Peter Wu
220c24ecb5
Avoid redirecting output to file when tcgetpgrp fails
...
* src/log.c (check_redirect_output): tcgetpgrp can return -1 (ENOTTY),
be sure to check whether a valid controlling terminal exists before
redirecting.
Fixes : #51181
2017-12-31 12:59:15 +01:00
Darshit Shah
3d2b2231cd
Add new test for 416 responses
...
* testenv/server/http/http_server.py: If there are multiple requests in
which the requested range is unsatisfiable, then send a body in the in
the 2nd response onwards
* testenv/Test-416.py: New test to check how Wget handles 416 responses
2017-12-11 14:48:01 +01:00
Darshit Shah
693cee0109
Don't assume a 416 response has no body
...
* http.c(gethttp): In case of a 416 response, try to drain the socket of
any bytes before reusing the connection
Reported-By: Iru Cai <mytbk920423@gmail.com>
2017-12-08 18:44:17 +01:00
Tim Rühsen
6aa6b669ef
Support building with OpenSSL 1.1 w/o deprecated features
...
* src/openssl.c (ssl_init): Fix code for the subject's issue
Reported-by: Matthew Thode
2017-11-26 18:59:47 +01:00
Tim Rühsen
8551ceccfe
Avoid link conversion after 304 Not Modified
...
* src/http.c (gethttp): Handle 304 before setting document content type
Fixes : #52404
Reported-by: Ben Fuchs
2017-11-25 19:33:03 +01:00
YX Hao
19060db44f
Fix printing mutibyte chars as unprintable chars on Windows
...
* src/log.c (get_warc_log_fp): Fix return value to stderr
* src/main.c (main): Init logging as soon as possible,
fix locale/charset on Windows
2017-11-16 12:23:20 +01:00
Tim Rühsen
a30a5a9059
* tests/Test-https-weboftrust.px: Fix/add sslport
2017-11-16 12:12:16 +01:00
YX Hao
a9a953feee
Convert remote path to local encoding
...
* src/url.c (url_file_name): Convert remote path to local encoding
2017-11-15 19:58:53 +01:00
Tim Rühsen
267cd51fff
Do not use must-revalidate in Cache-Control header
...
As the bug report states, 'must-revalidate' is a request directive.
Fixes #52379
2017-11-10 10:57:46 +01:00
Darshit Shah
973c26ed7d
Fix Segfault due to derefencing null ptr
...
* src/http.c(gethttp): When Encoding is gzip, ensure that the
Content-Type Header was actually seen. Without this, the "type" variable
is null causing a Segfault.
Reported-By: Noël Köthe <noel@debian.org>
2017-11-06 10:09:03 +01:00
Tim Rühsen
16d066f89c
* src/http.c: Fix H_REDIRECTED
2017-11-03 22:23:04 +01:00
Tim Rühsen
a2477d487c
* src/http.c: Add support for HTTP status code 308
2017-11-03 22:12:11 +01:00
Tim Rühsen
7ac72e063c
Fix uninitialized value messages in tests
...
* tests/Test-https-*.px: Use correct variable in error message
Reported-by: Jeffrey Walton
2017-10-30 21:29:14 +01:00
Tim Rühsen
95891cbba3
Ignore dirmngr.conf, gpg.conf in test directories
...
* testenv/conf/expected_files.py: Ignore dirmngr.conf, gpg.conf
Libgpgme creates certain files if $HOME doesn't contain the .gnupg directory.
These files disturb some metalink tests if we don't ignore them.
Reported-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
2017-10-30 13:04:09 +01:00
Tim Rühsen
2486320a2a
* contrib/release: Cleanup, use lzip instead of xz
2017-10-27 11:26:37 +02:00
Tim Rühsen
ba6b44f674
Fix heap overflow in HTTP protocol handling (CVE-2017-13090)
...
* src/retr.c (fd_read_body): Stop processing on negative chunk size
Reported-by: Antti Levomäki, Christian Jalio, Joonas Pihlaja from Forcepoint
Reported-by: Juhani Eronen from Finnish National Cyber Security Centre
2017-10-26 17:29:38 +02:00
Tim Rühsen
d892291fb8
Fix stack overflow in HTTP protocol handling (CVE-2017-13089)
...
* src/http.c (skip_short_body): Return error on negative chunk size
Reported-by: Antti Levomäki, Christian Jalio, Joonas Pihlaja from Forcepoint
Reported-by: Juhani Eronen from Finnish National Cyber Security Centre
2017-10-26 17:29:38 +02:00
Tim Rühsen
bec4c215a8
Update for release 1.19.2
...
* NEWS: Add news for 1.19.2
* doc/wget.texi: Fix 1.20 to 1.19.2
2017-10-26 16:31:57 +02:00
YX Hao
27d78d944f
Avoid unnecessary UTF-8 encoded fallback (trivial change)
...
* src/retr.c (retrieve_url): Check for changed URL on redirect
2017-10-25 14:26:36 +02:00
Tim Rühsen
60f033426f
Add GNU extensions to .netrc parsing
...
src/netrc.c (parse_netrc): Add 'port' and 'force' extensions
Reported-by: September 20Tim Landscheidt
2017-09-27 12:42:06 +02:00
Josef Moellers
6f3b995993
Bail out on unexpected 416 server errors
...
* src/http.c (gethttp): Stop on 416 if file is incomplete
2017-09-18 16:45:49 +02:00
Tim Schlueter
c451eec155
Add gzip Content-Encoding decompression
...
* src/http.c (struct http_stat): Add remote_encoding field.
(read_response_body): Enable gzip decompression.
(initialize_request): Send gzip Accept-Encoding header.
(gethttp): Decompress files with gzip Content-Encoding.
* src/retr.c: include zlib.h.
(zalloc): New function.
(zfree): New function.
(fd_read_body): Decompress gzip data.
* src/retr.h (fd_read_body enum): Add rb_compressed_gzip flag.
2017-08-04 14:34:53 +02:00