summaryrefslogtreecommitdiff
path: root/utils/nsurl.c
Commit message (Collapse)AuthorAgeFilesLines
* nusrl: Move into utils/nsurl directory.Michael Drake2017-02-081-2500/+0
|
* nsurl: Update to use ascii_* helper functions.Michael Drake2016-08-131-112/+15
|
* fixup nsurl handling to avoid locale specific character type implementationVincent Sanders2016-03-141-110/+224
|
* Stop utf8 conversion leaking its strings.Michael Drake2015-10-311-8/+16
|
* Don't fail on URLs with no host.Michael Drake2015-10-311-8/+4
|
* Style guide adherence.Michael Drake2015-10-311-11/+16
|
* Make nsurl utf8 string conversion function consistent with nsurl API.Michael Drake2015-10-251-1/+1
|
* Rework IDN URL retrieval to return an nserrorChris Young2015-10-241-26/+27
|
* Add URL fragmentChris Young2015-10-241-1/+1
|
* Check we've obtained the host stringChris Young2015-10-241-0/+5
|
* Show the IDN decoded form in the URL bar on GTK if the option is set.Chris Young2015-10-241-1/+1
|
* Add a function to retrieve the decoded version of IDNA URLsChris Young2015-10-241-0/+45
|
* Add tests for all asserts in nsurl API and for access and access_leafVincent Sanders2015-07-091-0/+4
|
* Add asserts to ensure operations not passed bad pointersVincent Sanders2015-07-091-0/+4
|
* Improve component documentation.Michael Drake2015-07-091-3/+12
|
* Fix a signed comparison error in nsurl parsing.Vincent Sanders2015-07-041-1/+1
| | | | | | | | | | | | | | | | | | | In utils/nsurl.c the function nsurl__create_from_section() has a section dealing with non-redundant ports (starting line 973). lwc_intern_string() was being called with negative lengths and as it takes a size_t (unsigned) so is getting passed a very large length which causes a segfault. this is supposed to be protected by the flag setting on line 969 however the arithmetic is all *unsigned* so the condition never matches (gdb) p length - (colon - pegs->at + skip) $9 = 18446744073709551608 changing the check arithmetic to be a simple comparison against length prevents this issue and reduces the amount of computation required.
* Change LOG() macro to be varadicVincent Sanders2015-05-281-26/+23
| | | | | | | | | | | | 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.
* Remove fragment from nsurl hash.Michael Drake2015-03-271-3/+0
|
* remove some warnings from freebsd buildVincent Sanders2014-12-211-0/+1
|
* fix dumb mistake in missing a close bracket.Vincent Sanders2014-11-041-1/+1
|
* change logic to check for false instead of not true to fix coverity 1250328Vincent Sanders2014-11-041-4/+4
|
* Remove unused variable.Michael Drake2014-10-301-1/+0
|
* Add a nsurl_nice, which can replace url_nice.Michael Drake2014-10-301-0/+104
|
* update nsurl file header to contain references to the specifications it ↵Vincent Sanders2014-10-291-2/+8
| | | | implements
* mailto urls don't have passwords or ports, so we don't need to look for ':'.Michael Drake2014-08-041-2/+4
|
* Add debug.Michael Drake2014-08-041-0/+16
|
* Put ultra-verbose logging inside NSURL_DEBUG #ifdef.Michael Drake2014-06-091-1/+3
|
* fallback to old url creation behaviour if the IDNA host parse failsVincent Sanders2014-06-091-22/+59
|
* IDNA2008 support.Chris Young2014-06-041-5/+16
|
* cleanup utils header, remove cruft and add documentationVincent Sanders2014-05-111-0/+11
|
* make nsurl_defragment() API more obvious and remove duplicated parameter ↵Vincent Sanders2014-03-091-0/+9
| | | | checking
* Save a call to lwc_string_length.Michael Drake2014-02-151-3/+2
|
* Ensure allocation includes space for fragment.Michael Drake2014-02-151-4/+6
|
* Reject creation of http(s) urls without hosts.Michael Drake2014-02-111-25/+53
|
* Just ref a corestring.Michael Drake2014-01-241-5/+3
|
* Add function to get a nsurl's hash value.Michael Drake2013-05-171-0/+65
|
* Fix handling of junk inputJohn-Mark Bell2013-01-121-0/+3
|
* Check if box with imagemap at point has area at point.Michael Drake2012-11-221-3/+1
|
* make nsurl_access() not assert with being passed a NULL url as it is assumed ↵Vincent Sanders2012-11-221-1/+3
| | | | elsewhere this will never fail.
* Fix join with rel part of " ". Add a few tests.Michael Drake2012-11-021-0/+7
|
* More useful title info for images.Michael Drake2012-10-241-0/+32
|
* Add nsurl_replace_query. Add tests. Make tester itterate remaining ↵Michael Drake2012-10-111-0/+83
| | | | lwc_strings.
* Fix dead store.Michael Drake2012-10-111-1/+1
|
* Ensure non-void functions have a return at the end, even though it shouldn't ↵Michael Drake2012-10-111-0/+4
| | | | get there, to squash warning.
* Add nusrl_parent function, to get parent path URL.Michael Drake2012-10-061-8/+106
|
* Don't let it read off the front of empty relative URLs.Michael Drake2012-10-021-2/+2
|
* Dodge a clang warning.Michael Drake2012-08-091-5/+7
|
* Fix FTP detection. Thanks to Etienne Cochard <etienne.cochard@gmail.com> ↵Daniel Silverstone2012-05-231-1/+1
| | | | | | for spotting the bug. svn path=/trunk/netsurf/; revision=13930
* Reworked r13532 in a cleaner way. The FLEX_ARRAY_LEN_DECL macro from utils.h ↵François Revel2012-03-191-5/+1
| | | | | | should be used when declaring an empty array at end of struct. svn path=/trunk/netsurf/; revision=13535
* Workaround use of C99 flex array. gcc2 did not support it, only 0-len ↵François Revel2012-03-191-1/+5
| | | | | | arrays. Possibly a FLEX_ARRAY_LEN macro could be defined in utils.h instead. svn path=/trunk/netsurf/; revision=13532