Commit Graph

35 Commits

Author SHA1 Message Date
Richard Wilson 6c4003bf90 Remove URL caching and fix NULL reads.
svn path=/trunk/netsurf/; revision=2855
2006-08-17 14:48:28 +00:00
Richard Wilson de0c4e2c32 Implement up toolbar icon and menu option.
svn path=/trunk/netsurf/; revision=2705
2006-07-03 21:07:02 +00:00
John Mark Bell b7af14b591 Implement component-wise URL comparison
svn path=/trunk/netsurf/; revision=2697
2006-07-02 22:34:04 +00:00
John Mark Bell f73bae5c29 Make url_plq ensure url_get_components found a path
Make url_scheme call url_destroy_components in case where no scheme was 
found.

svn path=/trunk/netsurf/; revision=2686
2006-07-01 22:40:41 +00:00
Richard Wilson f22838ab62 Stop possible pollution of the cache.
svn path=/trunk/netsurf/; revision=2681
2006-06-30 23:09:21 +00:00
Richard Wilson cea180d752 Rewrite url_join to RFC 3986 compliance, and without the use of regular expressions. This should speed up pages with lots of links and also fix certain cases where URLs were incorrectly returned.
svn path=/trunk/netsurf/; revision=2664
2006-06-28 21:49:41 +00:00
Richard Wilson d45a56ba7f Fix URL joining for fragments.
svn path=/trunk/netsurf/; revision=2658
2006-06-27 18:47:33 +00:00
Richard Wilson a0414fd967 Massively optimise common URL functions. This should (a) drastically reduce the start-up time for users with a large history/hotlist, and (b) decrease the loading time for pages with a sizable number of references.
svn path=/trunk/netsurf/; revision=2656
2006-06-27 17:59:32 +00:00
Richard Wilson 83c6568057 Don't use a regexp to extract scheme name.
svn path=/trunk/netsurf/; revision=2655
2006-06-27 00:53:39 +00:00
John Mark Bell 4f249f9d0a Merge cookies changes into head - unvalidated transactions and a UI
still need implementing.

svn path=/trunk/netsurf/; revision=2632
2006-06-19 21:49:25 +00:00
James Bursa 77907dd584 Fix crash when a relative URL contains "//../".
svn path=/trunk/netsurf/; revision=2543
2006-04-22 09:07:28 +00:00
John Mark Bell c09eb457df Unify information databases
svn path=/trunk/netsurf/; revision=2519
2006-04-09 23:21:13 +00:00
John Mark Bell 5ce5fe084c [project @ 2006-02-19 18:26:23 by jmb]
Rewrite HTTP authentication.
Fix extraction of realm from WWW-Authenticate header.
Tidy up login dialog code.

svn path=/import/netsurf/; revision=2085
2006-02-19 18:26:23 +00:00
James Bursa 253c199d1f [project @ 2005-07-23 20:43:37 by bursa]
Rewrite and simplify url_nice() to improve suggested filenames. Add option to keep extensions (no UI currently).

svn path=/import/netsurf/; revision=1814
2005-07-23 20:43:37 +00:00
John Mark Bell f4ecaaed31 [project @ 2005-07-16 14:35:20 by jmb]
- Convert Messages files to UTF-8 encoding.
- Replace local_encoding_name() with platform specific
  utf8_[to,from]_local_encoding() functions - this allows mapping of 8bit
  characters 0x80->0x9f (inclusive).
- All text that is rendered by the RISC OS Wimp is now converted to the system
  local encoding prior to display.
- Lose the horrendous hack that was messages_get_key()
- Menu text is now translated to system local encoding on the fly (if necessary)
  rather than at menu creation time. This allows the system alphabet to change
  under us and our menus remain usable.
- The Languages menu now lists all languages that are present in the LangNames
  file. In the case of selecting the UI language, those languages which are not
  available are shaded.

svn path=/import/netsurf/; revision=1796
2005-07-16 14:35:25 +00:00
Adrian Lees 8aed1103b6 [project @ 2005-06-27 01:57:54 by adrianl]
Fix termination of output from url_escape

svn path=/import/netsurf/; revision=1770
2005-06-27 01:57:54 +00:00
John Mark Bell 5817f82ba8 [project @ 2005-06-26 22:18:37 by jmb]
Improve clarity of use of utf8_to_enc.
Remove use of curl_escape - url_escape does similar things, just better.

svn path=/import/netsurf/; revision=1766
2005-06-26 22:18:37 +00:00
James Bursa b05bef4a61 [project @ 2005-04-30 14:31:48 by bursa]
Fix bug in url_up_re which caused /xy/../ not to be recognised when xy was 2 characters. Add defines for match part numbers. Simplify part 6(g) of url_join().

svn path=/import/netsurf/; revision=1704
2005-04-30 14:31:48 +00:00
John Mark Bell a051b36ae7 [project @ 2005-04-23 22:26:05 by jmb]
Make url_join match the spec - see http://www.ics.uci.edu/~fielding/url/test1.html for testcases.

svn path=/import/netsurf/; revision=1682
2005-04-23 22:26:05 +00:00
John Mark Bell d43dc8839e [project @ 2005-04-16 05:10:08 by jmb]
Don't unescape characters 0x80->0xFF

svn path=/import/netsurf/; revision=1648
2005-04-16 05:10:08 +00:00
John Mark Bell a91cd77902 [project @ 2005-02-14 22:35:05 by jmb]
Fix bug in regex

svn path=/import/netsurf/; revision=1513
2005-02-14 22:35:05 +00:00
John Mark Bell 0c7b9496ef [project @ 2005-02-14 21:20:26 by jmb]
Make regex work with latest unixlib.
Fix incorrect return value

svn path=/import/netsurf/; revision=1512
2005-02-14 21:20:26 +00:00
Richard Wilson 2affb76944 [project @ 2005-02-03 13:18:22 by rjw]
Implementation of URL suggestion

svn path=/import/netsurf/; revision=1488
2005-02-03 13:18:22 +00:00
James Bursa a1fe308d13 [project @ 2005-01-02 14:41:07 by bursa]
regexec() returns int, not a pointer.

svn path=/import/netsurf/; revision=1425
2005-01-02 14:41:07 +00:00
John Mark Bell 7a49cba9f3 [project @ 2005-01-02 04:01:21 by jmb]
Lose warning

svn path=/import/netsurf/; revision=1420
2005-01-02 04:01:21 +00:00
John Mark Bell 49ce807e3c [project @ 2004-10-01 21:31:55 by jmb]
A somewhat better implementation of referrers which no longer sends the referer if the URL schemes don't match.

Things to do:
1) Preservation of referer across redirects (see comment in browser.c:284)
2) GUI templates/code for configuration of referer sending (simple on/off toggle only)
3) Make referer sending when fetching objects/stylesheets for a page pay attention to option_send_referer?
4) Handle the case where the referer is in the form of http://moo:foo@mysite.com/ (ie the login details embedded in the referer - not good).

svn path=/import/netsurf/; revision=1297
2004-10-01 21:31:55 +00:00
John Tytgat 7264ae50e5 [project @ 2004-08-14 15:07:19 by joty]
- Rename len() to css_len2px().
- Less compiler warnings concerning float/int implicit casts.
- More stddef.h type usuage.

svn path=/import/netsurf/; revision=1232
2004-08-14 15:07:21 +00:00
John Mark Bell c9bd6fa9fc [project @ 2004-08-09 16:11:58 by jmb]
Rework the interface of the URL handing module to allow for multiple error types.
Modify save_complete URL rewriting appropriately.

svn path=/import/netsurf/; revision=1206
2004-08-09 16:11:58 +00:00
John Mark Bell f68d4491be [project @ 2004-08-06 22:20:36 by jmb]
Make the likes of <a href="#foo"> work

svn path=/import/netsurf/; revision=1188
2004-08-06 22:20:36 +00:00
James Bursa e3833d52a2 [project @ 2004-06-08 10:56:21 by bursa]
Ignore whitespace at the start and end of URLs.

svn path=/import/netsurf/; revision=935
2004-06-08 10:56:21 +00:00
James Bursa 9d9f208d7e [project @ 2004-05-07 19:04:59 by bursa]
Fix possible buffer under-read.

svn path=/import/netsurf/; revision=840
2004-05-07 19:04:59 +00:00
James Bursa 0bb2a027d6 [project @ 2004-04-13 23:21:03 by bursa]
Make scheme matching stricter.

svn path=/import/netsurf/; revision=779
2004-04-13 23:21:03 +00:00
James Bursa 9d4f0a373c [project @ 2004-04-12 20:43:29 by bursa]
Fix bug in url_join().

svn path=/import/netsurf/; revision=763
2004-04-12 20:43:29 +00:00
James Bursa d5a81883e8 [project @ 2004-03-27 23:18:52 by bursa]
Implement url_nice() and make save boxes use it to choose the default filename.

svn path=/import/netsurf/; revision=682
2004-03-27 23:18:52 +00:00
James Bursa 1c85bf0429 [project @ 2004-03-02 18:02:17 by bursa]
Add new url functions and modify to use them.

svn path=/import/netsurf/; revision=578
2004-03-02 18:02:41 +00:00