summaryrefslogtreecommitdiff
path: root/content/urldb.c
Commit message (Collapse)AuthorAgeFilesLines
* Socket: fix win32/aos3 buildJohn-Mark Bell2024-03-131-5/+0
|
* urldb: Handle snprintf errorMichael Drake2022-10-231-1/+4
|
* remove unecessary use of gui_internal in contentVincent Sanders2020-06-251-1/+0
|
* Fix some bsdsocket.library usageChris Young2019-04-081-0/+5
| | | | NetSurf now builds against libcurl-AmiSSL
* ensure url buffer is sufficient to not truncate outputVincent Sanders2018-11-061-1/+1
|
* URLdb: fix comparisonJohn-Mark Bell2018-04-221-1/+1
|
* HSTS: support policy in urldbJohn-Mark Bell2018-04-221-10/+178
|
* rationalise history icon bitmap handling to ensure correct lifetimeVincent Sanders2017-09-101-47/+0
|
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-25/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* fix coverity issue 1372473 Out-of-bounds writeVincent Sanders2017-06-091-2/+2
|
* Update documentation removing junk and moving to markdown for most text filesVincent Sanders2017-06-091-1/+1
|
* fix urldb numerical v6 address handlingVincent Sanders2017-03-131-4/+12
|
* make the urldb content type setting API return an errorVincent Sanders2017-03-131-3/+6
|
* make urldb persistance setting API return an errorVincent Sanders2017-03-131-3/+6
|
* change urldb_set_title API to return an error statusVincent Sanders2017-03-131-13/+22
|
* actually check the generated database files against reference test dataVincent Sanders2017-03-081-1/+0
|
* remove urldb_add_host and path from public APIVincent Sanders2017-03-081-155/+174
| | | | | | | | | | The urldb_add_host and urldb_add_path API were only public for the urldb test code which was calling them incorrectly in any case as the url bloom filters were not updated so serialising and adding data to entries was inconsistent. This also changes the tests to use the urldb_add_url API which is less buggy and results in a smaller, cleaner urldb API.
* make update data api return an resultVincent Sanders2017-03-081-3/+6
|
* use robust handling of time_t value (de)serialisationVincent Sanders2017-03-081-6/+35
| | | | | | The previous implementation was wrong on systems where time_t was not an int type. This changes urldb to use the portable implementation netsurf has available.
* clean up url database documentation comments and formattingVincent Sanders2017-03-061-334/+467
|
* Revert "make urldb internal parse macros less prone to control flow errors"Vincent Sanders2017-03-051-4/+4
| | | | | This reverts commit 718da3ffffd1181a0b5b2d590214bc408ca44117. These macros are used in a way that causes safe macros to break
* make urldb internal parse macros less prone to control flow errorsVincent Sanders2017-03-051-4/+4
| | | | fixes issue highlighted by coverity (CID 1361696)
* fix some doxygen errorsVincent Sanders2017-02-241-1/+1
|
* fix unused variable warning on non public suffix library buildsVincent Sanders2017-02-231-1/+3
|
* enable use of netsurf public suffix library to prevent supercookiesVincent Sanders2016-09-201-0/+18
|
* if the cookie is a session cookie indicate itVincent Sanders2016-09-131-0/+6
| | | | | previously session cookies were simply displayed as having an expiry in 1970 which was unhelpful.
* make urldb parsing of ascii data explicitVincent Sanders2016-09-101-7/+10
|
* ensure url database destructor cleans up correctlyVincent Sanders2016-08-091-2/+7
|
* extend url database unit testing to cover more APIVincent Sanders2016-08-091-10/+24
|
* fix urldb warning and test buildVincent Sanders2016-08-081-3/+4
|
* update urldb dump to use LOG rather than writing to stderr directlyVincent Sanders2016-08-081-8/+19
|
* msplit public url database API out for frontendsVincent Sanders2016-06-131-3/+5
|
* move bitmap API header to core include directoryVincent Sanders2016-05-261-1/+1
|
* move image content handlers to accomodate core build changesVincent Sanders2016-05-231-1/+1
|
* Reduce unecessary use of networking headersVincent Sanders2016-04-171-1/+1
| | | | | | | | The utility configuration header dragged in a number of bsd sockets and related API as a side effect of setting up the configuration. By splitting the header and API setup into a separate header only the small number of places that need the functionality explitly include it.
* urldb no longer uses curl directly but it does need correct network includesVincent Sanders2016-04-171-0/+1
| | | | | | The update to remove curl usage from urldb must pull in the utility config header instead to get inet_aton and such or compoles on some platforms fail.
* create date and time to seconds since epoch processing utility functionVincent Sanders2016-04-161-12/+11
| | | | | | | currently NetSurf uses curl_getdate to convert textural date and time strings into seconds since epoch. It is betetr to move this functionality to a utility function so curl_getdate can easily be replaced if required.
* revert urldb include fixes as tehy cause build issues elsewhere and failed ↵Vincent Sanders2016-02-121-4/+0
| | | | to fix the warning
* fix more freebsd warningsVincent Sanders2016-02-121-0/+4
|
* URLdb doesn't store 'mailto' urls, so add early exit to lookup.Michael Drake2016-01-081-0/+6
|
* Fix crazy indentation.Michael Drake2016-01-081-3/+2
|
* fixup all the remaining logging macro callsitesVincent Sanders2015-05-281-2/+2
| | | | | The semantic patch tool appears to have missed some difficult to reason about callsites which have now been manually cleaned up
* Change LOG() macro to be varadicVincent Sanders2015-05-281-21/+20
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* Move bitmap operations into an operation table.Vincent Sanders2015-04-131-9/+12
| | | | | | | The generic bitmap handlers provided by each frontend are called back from the core and therefore should be in an operation table. This was one of the very few remaining interfaces stopping the core code from being split into a library.
* Remove url from content thumbnailers APIVincent Sanders2015-03-151-5/+7
| | | | | | | | | | | | | | | | The content thumbnailers for each frontend were being provided the contents url. This was only ever used to call the urldb thumbnail setting API. This changes it so the single callsite that passed a valid url adds the bitmap to that url itself in desktop_history.c instead of forcing every frontend to require the urldb API. Additionally the old API could pass the url as NULL which was causing asserts where this was not an expected parameter value. Because of this this fixes bug #2286 which was also present in the monkey frontend as both called nsurl_access() on the url without the NULL check and caused an assertion.
* Doxygen fixesVincent Sanders2014-11-091-2/+2
|
* restructure urldb sourceVincent Sanders2014-11-011-2478/+2322
| | | | | remove forward declarations and restructure. exported functions are also now documented in the urldb.h header.
* Move host_is_ip_address into urldb, as that's the only thing that cares.Michael Drake2014-10-311-7/+100
|
* remove the die API from the core.Vincent Sanders2014-10-261-12/+15
| | | | | | | | The die() API for abnormal termination does not belong within the core of netsurf and instead errors are propogated back to the callers. This is the final part of this change and the API is now only used within some parts of the frontends
* Remove unused #includeMichael Drake2014-05-151-1/+0
| | | | Persistent thumbnail code was ripped out of urldb ages ago.