Michael Drake
8bccf16158
Check if box with imagemap at point has area at point.
2012-11-22 17:40:20 +00:00
Vincent Sanders
7d83151d1a
make nsurl_access() not assert with being passed a NULL url as it is assumed elsewhere this will never fail.
2012-11-22 17:04:26 +00:00
Michael Drake
9ab851a5a9
Fix join with rel part of " ". Add a few tests.
2012-11-02 10:54:34 +00:00
Michael Drake
a526209e74
More useful title info for images.
2012-10-24 18:22:45 +01:00
Michael Drake
d84e3fd773
Add nsurl_replace_query. Add tests. Make tester itterate remaining lwc_strings.
2012-10-11 19:23:22 +01:00
Michael Drake
93ee8f48c1
Fix dead store.
2012-10-11 14:11:49 +01:00
Michael Drake
20425b6914
Ensure non-void functions have a return at the end, even though it shouldn't get there, to squash warning.
2012-10-11 11:58:27 +01:00
Michael Drake
40343b740d
Add nusrl_parent function, to get parent path URL.
2012-10-06 14:06:38 +01:00
Michael Drake
3d337642bd
Don't let it read off the front of empty relative URLs.
2012-10-02 20:20:38 +01:00
Michael Drake
b0ca8175bb
Dodge a clang warning.
2012-08-09 17:44:59 +01:00
Daniel Silverstone
9dc9e36bc3
Fix FTP detection. Thanks to Etienne Cochard <etienne.cochard@gmail.com> for spotting the bug.
...
svn path=/trunk/netsurf/; revision=13930
2012-05-23 10:34:30 +00:00
François Revel
57676ad1c0
Reworked r13532 in a cleaner way. The FLEX_ARRAY_LEN_DECL macro from utils.h should be used when declaring an empty array at end of struct.
...
svn path=/trunk/netsurf/; revision=13535
2012-03-19 18:24:43 +00:00
François Revel
3d3bb0c5cf
Workaround use of C99 flex array. gcc2 did not support it, only 0-len arrays. Possibly a FLEX_ARRAY_LEN macro could be defined in utils.h instead.
...
svn path=/trunk/netsurf/; revision=13532
2012-03-19 02:45:53 +00:00
John Mark Bell
6ef2df13f7
Fix const correctness
...
svn path=/trunk/netsurf/; revision=13228
2011-12-04 11:12:17 +00:00
Michael Drake
714f07c48b
Rename nsurl_enquire to nsurl_has_component.
...
svn path=/trunk/netsurf/; revision=13183
2011-11-27 18:32:06 +00:00
Michael Drake
de10eff59c
Don't escape '|'.
...
svn path=/trunk/netsurf/; revision=13162
2011-11-23 16:27:20 +00:00
Michael Drake
04f6957141
Fix handling of bad mailto: urls.
...
svn path=/trunk/netsurf/; revision=13113
2011-11-03 12:15:32 +00:00
Michael Drake
3ecf3c1eaf
Fix empty port separator and redundant port removal when credentials are present.
...
svn path=/trunk/netsurf/; revision=13108
2011-10-31 22:23:02 +00:00
Michael Drake
a4dc04e44a
Test numbers before calling strncmp.
...
svn path=/trunk/netsurf/; revision=13107
2011-10-31 22:17:05 +00:00
Michael Drake
d64e09aef7
Make sure port's just 80, before removing in http case.
...
svn path=/trunk/netsurf/; revision=13106
2011-10-31 22:13:38 +00:00
Michael Drake
ea761e16e6
nsurl optimisation: Remove a load of branches into fewer.
...
svn path=/trunk/netsurf/; revision=13105
2011-10-31 22:02:40 +00:00
Michael Drake
3936e6df15
Remove some code that's not needed. Fix redundant port handling.
...
svn path=/trunk/netsurf/; revision=13104
2011-10-31 21:47:10 +00:00
Michael Drake
c6f13db858
Don't need to generate string from scratch in nsurl_defragment, just copy.
...
svn path=/trunk/netsurf/; revision=13103
2011-10-31 21:27:11 +00:00
Michael Drake
f980e6015f
nsurl optimisation: Don't use separate allocations for nsurl strings.
...
svn path=/trunk/netsurf/; revision=13102
2011-10-31 21:13:29 +00:00
Michael Drake
a112bfb676
Function for adding fragment onto nsurl.
...
svn path=/trunk/netsurf/; revision=13087
2011-10-28 19:18:14 +00:00
Michael Drake
62248c06d3
Don't need to rescan authority if there was no scheme. Bring documentation back into sync with code. Make pre-authority slash skipping more robust.
...
svn path=/trunk/netsurf/; revision=13061
2011-10-15 14:03:13 +00:00
John Mark Bell
ee930d97e4
Fix handling of no scheme
...
svn path=/trunk/netsurf/; revision=13055
2011-10-15 11:51:54 +00:00
John Mark Bell
ca4dfc7f1e
Move nsurl test suite into test/
...
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
2011-10-14 21:29:13 +00:00
Michael Drake
c69e75220d
Remove unused variable.
...
svn path=/trunk/netsurf/; revision=13048
2011-10-14 20:54:18 +00:00
Michael Drake
9bf80e3788
Improve bad URL handling.
...
svn path=/trunk/netsurf/; revision=13045
2011-10-14 13:54:52 +00:00
Michael Drake
0826de092f
Fix double inclusion of host/port separator when login credentials are present. Add tests to tester.
...
svn path=/trunk/netsurf/; revision=13040
2011-10-13 19:39:30 +00:00
Michael Drake
606d7cc64e
Add nsurl testing rig.
...
svn path=/trunk/netsurf/; revision=13035
2011-10-11 14:59:32 +00:00
Michael Drake
9a7b316661
Set scheme_end marker after advance due to leading whitespace.
...
svn path=/trunk/netsurf/; revision=13034
2011-10-11 14:54:28 +00:00
Michael Drake
624967f30a
Pedantic spacing fix.
...
svn path=/trunk/netsurf/; revision=13009
2011-10-08 13:14:08 +00:00
Michael Drake
642d773e2f
Add function to get at url length.
...
svn path=/trunk/netsurf/; revision=13003
2011-10-08 12:03:54 +00:00
Michael Drake
c8bdbdd2e7
Handle joining to a base with no path.
...
svn path=/trunk/netsurf/; revision=12983
2011-10-07 21:16:35 +00:00
Michael Drake
fd5ad500c5
Only need to cope with trailing whitespace if it exists.
...
svn path=/trunk/netsurf/; revision=12969
2011-10-06 11:53:23 +00:00
Michael Drake
1203c4baf2
Ensure trailing whitespace is ignored.
...
svn path=/trunk/netsurf/; revision=12960
2011-10-05 20:16:19 +00:00
Michael Drake
7d3a84231e
Optimise nsurl__is_no_escape.
...
svn path=/trunk/netsurf/; revision=12957
2011-10-05 15:43:44 +00:00
Michael Drake
7d0b91caa7
Make sure the fragment remover sets the nsurl to NULL on failure.
...
svn path=/trunk/netsurf/; revision=12956
2011-10-05 12:15:27 +00:00
Michael Drake
921e9959e6
Namespaceing.
...
svn path=/trunk/netsurf/; revision=12955
2011-10-05 12:13:26 +00:00
Michael Drake
0c30fe98af
Handle % in URL without 2 hex digits after.
...
svn path=/trunk/netsurf/; revision=12953
2011-10-05 09:46:06 +00:00
Michael Drake
20c70fcb90
Fix upper case hex and return -1 for invalid hex.
...
svn path=/trunk/netsurf/; revision=12952
2011-10-05 09:41:54 +00:00
Vincent Sanders
c18c9b5511
make url character checks table driven and remove expensive strchr
...
svn path=/trunk/netsurf/; revision=12951
2011-10-05 09:33:56 +00:00
Michael Drake
280ece6df9
Handle upper case hex.
...
svn path=/trunk/netsurf/; revision=12950
2011-10-05 09:30:12 +00:00
Vincent Sanders
a25f87a739
make nsurl__create_from_section correctly escape characters as per RFC3986
...
svn path=/trunk/netsurf/; revision=12948
2011-10-04 22:32:04 +00:00
John Mark Bell
170136a4e8
Ensure refcounts add up
...
svn path=/trunk/netsurf/; revision=12944
2011-10-03 22:13:45 +00:00
Michael Drake
6366f25f0d
Remove LOG.
...
svn path=/trunk/netsurf/; revision=12936
2011-10-03 20:56:35 +00:00
Michael Drake
a522d9ff14
Fix host/path with no scheme.
...
svn path=/trunk/netsurf/; revision=12935
2011-10-03 20:54:41 +00:00
Michael Drake
898b01e721
More conversion to nsurl. (box->href, object params, imagemaps, (i)frames)
...
svn path=/trunk/netsurf/; revision=12933
2011-10-03 20:28:29 +00:00