summaryrefslogtreecommitdiff
path: root/utils/nsurl.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix const correctnessJohn Mark Bell2011-12-041-3/+3
| | | | svn path=/trunk/netsurf/; revision=13228
* Rename nsurl_enquire to nsurl_has_component.Michael Drake2011-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=13183
* Don't escape '|'.Michael Drake2011-11-231-1/+1
| | | | svn path=/trunk/netsurf/; revision=13162
* Fix handling of bad mailto: urls.Michael Drake2011-11-031-13/+71
| | | | svn path=/trunk/netsurf/; revision=13113
* Fix empty port separator and redundant port removal when credentials are ↵Michael Drake2011-10-311-2/+2
| | | | | | present. svn path=/trunk/netsurf/; revision=13108
* Test numbers before calling strncmp.Michael Drake2011-10-311-6/+5
| | | | svn path=/trunk/netsurf/; revision=13107
* Make sure port's just 80, before removing in http case.Michael Drake2011-10-311-0/+2
| | | | svn path=/trunk/netsurf/; revision=13106
* nsurl optimisation: Remove a load of branches into fewer.Michael Drake2011-10-311-47/+46
| | | | svn path=/trunk/netsurf/; revision=13105
* Remove some code that's not needed. Fix redundant port handling.Michael Drake2011-10-311-17/+5
| | | | svn path=/trunk/netsurf/; revision=13104
* Don't need to generate string from scratch in nsurl_defragment, just copy.Michael Drake2011-10-311-7/+10
| | | | svn path=/trunk/netsurf/; revision=13103
* nsurl optimisation: Don't use separate allocations for nsurl strings.Michael Drake2011-10-311-347/+438
| | | | svn path=/trunk/netsurf/; revision=13102
* Function for adding fragment onto nsurl.Michael Drake2011-10-281-0/+60
| | | | svn path=/trunk/netsurf/; revision=13087
* Don't need to rescan authority if there was no scheme. Bring documentation ↵Michael Drake2011-10-151-18/+20
| | | | | | back into sync with code. Make pre-authority slash skipping more robust. svn path=/trunk/netsurf/; revision=13061
* Fix handling of no schemeJohn Mark Bell2011-10-151-0/+2
| | | | svn path=/trunk/netsurf/; revision=13055
* Move nsurl test suite into test/John Mark Bell2011-10-141-175/+7
| | | | | | | | Fix up llcache tester to reflect nsurl changes Make handling of http:,http:/,http:// consistent Fix buffer overflow when presented with an input string: "http://" svn path=/trunk/netsurf/; revision=13051
* Remove unused variable.Michael Drake2011-10-141-5/+0
| | | | svn path=/trunk/netsurf/; revision=13048
* Improve bad URL handling.Michael Drake2011-10-141-0/+2
| | | | svn path=/trunk/netsurf/; revision=13045
* Fix double inclusion of host/port separator when login credentials are ↵Michael Drake2011-10-131-5/+51
| | | | | | present. Add tests to tester. svn path=/trunk/netsurf/; revision=13040
* Add nsurl testing rig.Michael Drake2011-10-111-0/+126
| | | | svn path=/trunk/netsurf/; revision=13035
* Set scheme_end marker after advance due to leading whitespace.Michael Drake2011-10-111-1/+1
| | | | svn path=/trunk/netsurf/; revision=13034
* Pedantic spacing fix.Michael Drake2011-10-081-1/+1
| | | | svn path=/trunk/netsurf/; revision=13009
* Add function to get at url length.Michael Drake2011-10-081-0/+9
| | | | svn path=/trunk/netsurf/; revision=13003
* Handle joining to a base with no path.Michael Drake2011-10-071-2/+4
| | | | svn path=/trunk/netsurf/; revision=12983
* Only need to cope with trailing whitespace if it exists.Michael Drake2011-10-061-10/+24
| | | | svn path=/trunk/netsurf/; revision=12969
* Ensure trailing whitespace is ignored.Michael Drake2011-10-051-0/+9
| | | | svn path=/trunk/netsurf/; revision=12960
* Optimise nsurl__is_no_escape.Michael Drake2011-10-051-93/+28
| | | | svn path=/trunk/netsurf/; revision=12957
* Make sure the fragment remover sets the nsurl to NULL on failure.Michael Drake2011-10-051-0/+1
| | | | svn path=/trunk/netsurf/; revision=12956
* Namespaceing.Michael Drake2011-10-051-11/+13
| | | | svn path=/trunk/netsurf/; revision=12955
* Handle % in URL without 2 hex digits after.Michael Drake2011-10-051-2/+8
| | | | svn path=/trunk/netsurf/; revision=12953
* Fix upper case hex and return -1 for invalid hex.Michael Drake2011-10-051-7/+11
| | | | svn path=/trunk/netsurf/; revision=12952
* make url character checks table driven and remove expensive strchrVincent Sanders2011-10-051-19/+150
| | | | svn path=/trunk/netsurf/; revision=12951
* Handle upper case hex.Michael Drake2011-10-051-2/+2
| | | | svn path=/trunk/netsurf/; revision=12950
* make nsurl__create_from_section correctly escape characters as per RFC3986Vincent Sanders2011-10-041-9/+24
| | | | svn path=/trunk/netsurf/; revision=12948
* Ensure refcounts add upJohn Mark Bell2011-10-031-0/+1
| | | | svn path=/trunk/netsurf/; revision=12944
* Remove LOG.Michael Drake2011-10-031-1/+1
| | | | svn path=/trunk/netsurf/; revision=12936
* Fix host/path with no scheme.Michael Drake2011-10-031-3/+5
| | | | svn path=/trunk/netsurf/; revision=12935