Commit Graph

9 Commits

Author SHA1 Message Date
c6ee3d79ad Fix syntax-check 'sc_prohibit_have_config_h'
* cfg.mk: Remove sc_prohibit_have_config_h from local-checks-to-skip
* libwget/*.c: Include <config.h> unconditionally
* src/*.c: Likewise
* tests/*.c: Likewise
2017-04-30 22:01:34 +02:00
d7385604b5 Check for invalid 'BASE' URLs in HTML
* src/wget.c (html_parse): Check if 'base' parses correctly
* tests/test-base.c: Add test with invalid base URL
2017-03-09 11:37:49 +01:00
07b4c4623e Fix URL encoding issue in requests
* libwget/iri.c (wget_iri_escape_query): Do not escape ampersand,
  (wget_iri_get_escaped_resource): Use wget_iri_escape_query()
* tests/test-base.c: Add test URLs with spacing in path, query and param
2017-02-28 17:02:35 +01:00
ec396c577f Fix URLs to HTTPS where possible 2017-02-28 15:31:30 +01:00
00f126c585 Fix following relative links
* src/wget.c (html_parse): Add only absolute URLs to 'known_urls'.
* tests/test-base.c: Test that the changes work.

Reported-by: Jaaap@github.com
2016-09-16 16:14:08 +02:00
dd3c2f63b2 Updated copyright year for all relevant files 2016-01-25 13:06:21 +01:00
fba1ad1a63 Fix the /dev/null usage
* src/wget.c: do not create the directory if the first character is
'/'.
* tests/test-base.c: add test for -O/dev/null.
2016-01-19 12:17:27 +01:00
954136e2df Do not percent unescape query
* tests/test.c: Test query parsing in API
* tests/test-base.c: Test query handling of wget2
* include/libwget.h: Add flags to wget_iri_t,
  add function wget_iri_unescape_inline()
* libwget/iri.c: Add function wget_iri_unescape_inline(),
  fix wget_iri_parse() to not percent unescape query
  do not add fragment in wget_iri_get_escaped_resource()
2016-01-06 11:27:07 +01:00
48543621ab Fix HTML BASE with absolute path
* src/wget.c (html_parse): Fix HTML BASE with absolute path
* tests/Makefile.am: Add test-base.c
* tests/test-base.c: New file
2015-10-25 21:02:33 +01:00