summaryrefslogtreecommitdiff
path: root/content/urldb.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for URL file versions below 1.06John Mark Bell2008-03-131-83/+40
| | | | svn path=/trunk/netsurf/; revision=3945
* Forward compatible Cookie file loading/savingJohn Mark Bell2008-03-131-10/+15
| | | | | | Reduce amount of magic numbers svn path=/trunk/netsurf/; revision=3944
* Add testcase for non-fqdn -- already passes, but may as well keep it for ↵John Mark Bell2008-03-031-6/+24
| | | | | | regression testing. svn path=/trunk/netsurf/; revision=3877
* Ensure plq is terminated when looking for an URL path.John Mark Bell2008-01-301-0/+3
| | | | | | Ensure fetchcache_redirect() normalizes the redirect destination. svn path=/trunk/netsurf/; revision=3807
* More work on cookie parser. Our junk value handling is now significantly ↵John Mark Bell2008-01-191-19/+97
| | | | | | | | | | | | | closer to that of other browsers. + Fix infinite loop when encountering a spurious \r + Values are only treated as quoted if the first non-whitespace character is " + Cookies are inserted into the db in the order of receipt. This brings our Cookie: header ordering closer to other browsers (though this strictly shouldn't matter -- no ordering is defined, other than by path specificity) + Fix testcase assertions to cope with new output ordering svn path=/trunk/netsurf/; revision=3709
* Work on cookies to bring our behaviour closer to the spec and other browsers:John Mark Bell2008-01-171-97/+314
| | | | | | | | | | | | | | | | + Improve handling of quoted cookies -- now processes nested quotes correctly + Improve cookie output -- now knows which version it's outputting for and processes things appropriately + Add assertion that we're dealing with a domain cookie in the case where the cookie domain and URL host part don't match during validation. + Tidy up fix for broken domain cookie setting -- it's now less confusing to read. + Preserve cookie value quoting, regardless of its necessity. + Modify Cookie file format to save value_was_quoted flag -- version number bumped to 101. + Add more testcases. svn path=/trunk/netsurf/; revision=3708
* The previous fix was broken -- URI paths include the leafname.John Mark Bell2008-01-071-61/+34
| | | | | | | | | Make url_path() return the full path (including the leafname). Defaulted cookie path attributes have the leafname and trailing slash stripped. Add testcase for defaulted path. Fix testcase conditions for paths with leafnames. svn path=/trunk/netsurf/; revision=3693
* Fix potential crash in urldb_dump()John Mark Bell2008-01-071-13/+92
| | | | | | | | Relax 4.3.2(i) checking (Cookie path must be a prefix of URL path). We now permit a cookie path containing the document leafname -- we strip the leafname from the path. Make testsuite build again. Add tests for cookie path checking. svn path=/trunk/netsurf/; revision=3692
* Work around sites sending domain cookies for .foo.com from hosts such as ↵John Mark Bell2007-10-301-5/+20
| | | | | | bar.bat.foo.com, then expecting domain matching to succeed. This causes me pain. svn path=/trunk/netsurf/; revision=3637
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-4/+15
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Move the p->parent check in urldb to before the cookie loop. Prevents the ↵Daniel Silverstone2007-06-271-6/+12
| | | | | | cookie stuff exploding on domain cookies with no path. Fixes breakage with visiting launchpad.net svn path=/trunk/netsurf/; revision=3368
* Fix cookie domain matching in unverifiable transactions.John Mark Bell2007-06-101-15/+19
| | | | | | Minor tidying. svn path=/trunk/netsurf/; revision=3337
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-10/+10
| | | | | | | | | | | | | | in includes NetSurf includes are now done with ""s and other system includes with <>s as C intended. The scandeps tool has been updated to only look for ""ed includes, and to verify that the files exist in the tree before adding them to the dependency lines. The depend rule has therefore been augmented to make sure the autogenerated files are built before it is run. This is untested under self-hosted RISC OS builds. All else tested and works. svn path=/trunk/netsurf/; revision=3307
* Fix warning: field precision should have type 'int', but argument 4 has type ↵James Bursa2007-05-021-1/+2
| | | | | | 'long int'. svn path=/trunk/netsurf/; revision=3262
* 1) Fix corruption of history data structure on cloningJohn Mark Bell2007-04-071-1/+1
| | | | | | | | | 2) Only destroy urldb's thumbnail bitmap if it's not the same as the new one. This needs revisiting at a later date such that the mess surrounding who owns bitmap objects is sorted (and so that urldb doesn't need to know about bitmaps) svn path=/trunk/netsurf/; revision=3243
* Squash memory leakJohn Mark Bell2007-04-051-9/+12
| | | | svn path=/trunk/netsurf/; revision=3235
* Make GTK build compile on FreeBSD.James Bursa2007-01-291-0/+2
| | | | svn path=/trunk/netsurf/; revision=3154
* Handle strdup failureJohn Mark Bell2007-01-281-2/+7
| | | | svn path=/trunk/netsurf/; revision=3153
* Improve domain matching of referer and host.John Mark Bell2007-01-281-19/+30
| | | | | | | Lose comparison of schemes - this was spurious and wrong. Fixes 1646417. svn path=/trunk/netsurf/; revision=3152
* Handle cookies in unverifiable transactionsJohn Mark Bell2007-01-271-11/+41
| | | | svn path=/trunk/netsurf/; revision=3151
* Fix typo.John Mark Bell2006-12-281-1/+1
| | | | | | Default type -> text/plain svn path=/trunk/netsurf/; revision=3123
* Add URLdb destruction functionalityJohn Mark Bell2006-12-081-0/+140
| | | | svn path=/trunk/netsurf/; revision=3115
* Further fixes and tidying to urldb. Also squash some memory leaks.John Mark Bell2006-12-041-48/+93
| | | | svn path=/trunk/netsurf/; revision=3104
* Lose debug.Richard Wilson2006-12-011-16/+0
| | | | svn path=/trunk/netsurf/; revision=3088
* Fix 1535120, 1528673Richard Wilson2006-12-011-34/+60
| | | | svn path=/trunk/netsurf/; revision=3087
* Fix 1597646Richard Wilson2006-12-011-8/+17
| | | | svn path=/trunk/netsurf/; revision=3086
* Fix 1563546, plug possible memory leak.Richard Wilson2006-12-011-5/+5
| | | | svn path=/trunk/netsurf/; revision=3085
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Log hostname on insertion failure.John Mark Bell2006-10-121-1/+3
| | | | svn path=/trunk/netsurf/; revision=3000
* Ensure urldb_add_path always has a path.John Mark Bell2006-09-171-14/+23
| | | | | | Extract hostname from url authority returned by url_get_components. svn path=/trunk/netsurf/; revision=2958
* Lower overhead of urldb calls by using url component calls.Richard Wilson2006-09-021-104/+84
| | | | svn path=/trunk/netsurf/; revision=2908
* Experimental new frames code.Richard Wilson2006-09-021-0/+61
| | | | svn path=/trunk/netsurf/; revision=2906
* Fix edge case in cookie search code when handling Path=/fooJohn Mark Bell2006-07-171-4/+39
| | | | svn path=/trunk/netsurf/; revision=2776
* Allow the user to delete cookies.Richard Wilson2006-07-161-1/+53
| | | | svn path=/trunk/netsurf/; revision=2770
* Extent cookie_update API to allow notification of deleted domains. Fix nodes ↵Richard Wilson2006-07-161-7/+7
| | | | | | not being re-calculated. svn path=/trunk/netsurf/; revision=2765
* Display session cookies' expiry correctlyJohn Mark Bell2006-07-151-0/+5
| | | | | | | Fix urldb debug build Fix GTK build's cookie_update API svn path=/trunk/netsurf/; revision=2752
* Further url completion fixesRichard Wilson2006-07-131-2/+2
| | | | svn path=/trunk/netsurf/; revision=2744
* Fix url completionRichard Wilson2006-07-131-7/+11
| | | | svn path=/trunk/netsurf/; revision=2743
* Add basic cookie viewer, make trees use textarea components for UTF8 ↵Richard Wilson2006-07-131-48/+69
| | | | | | editing, trim headers, fix tree redraw issues. svn path=/trunk/netsurf/; revision=2739
* Relax domain matching to allow host a.com to match .a.comJohn Mark Bell2006-07-011-2/+12
| | | | svn path=/trunk/netsurf/; revision=2684
* Rewrite cookie parser to be more tolerant of junk inputJohn Mark Bell2006-06-241-232/+224
| | | | | | No longer need urldb_init; remove it. svn path=/trunk/netsurf/; revision=2643
* Strip day names from date strings before parsing; these are too variable John Mark Bell2006-06-241-1/+26
| | | | | | | to bother with (and carry no information useful to us) Make expires avpair handling cater for dates after 2038. svn path=/trunk/netsurf/; revision=2642
* Remove assertion of invalid assumption (fixes #1509118)John Mark Bell2006-06-201-2/+2
| | | | svn path=/trunk/netsurf/; revision=2637
* Make cookie file parser more strict (cookies with spaces in the value John Mark Bell2006-06-201-56/+52
| | | | | | | have been seen in the wild). Fix lookup of cookies for top-level paths (i.e. a path segment of "/") svn path=/trunk/netsurf/; revision=2636
* Fix handling of broken Expires avpairsJohn Mark Bell2006-06-191-5/+41
| | | | svn path=/trunk/netsurf/; revision=2633
* Merge cookies changes into head - unvalidated transactions and a UI John Mark Bell2006-06-191-3/+987
| | | | | | still need implementing. svn path=/trunk/netsurf/; revision=2632
* Fix handling of hosts with no paths attached (fixes #1505891)John Mark Bell2006-06-151-7/+17
| | | | svn path=/trunk/netsurf/; revision=2620
* Provide persistent flag for urldb entries.John Mark Bell2006-06-141-4/+25
| | | | | | | Make hotlist use this, rather than abusing the last visited date. This fixes the hotlist being copied to global history issue. svn path=/trunk/netsurf/; revision=2619
* Fix off-by-one error in search routines which caused crashes with John Mark Bell2006-06-141-5/+5
| | | | | | (invalid) host names ending in a '.'. svn path=/trunk/netsurf/; revision=2618
* Remove RISC OS dependencies from filename code.Richard Wilson2006-04-211-0/+7
| | | | svn path=/trunk/netsurf/; revision=2540