mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-14 02:52:52 +03:00
Ensure trailing whitespace is ignored.
svn path=/trunk/netsurf/; revision=12960
This commit is contained in:
parent
d06fcf791a
commit
1203c4baf2
@ -367,6 +367,15 @@ static void nsurl__get_string_markers(const char const *url_s,
|
||||
pos--;
|
||||
marker.end = pos + 1 - url_s;
|
||||
|
||||
/* Ensure last url section doesn't pass end */
|
||||
if (marker.fragment > marker.end) marker.fragment = marker.end;
|
||||
if (marker.query > marker.end) marker.query = marker.end;
|
||||
if (marker.path > marker.end) marker.path = marker.end;
|
||||
if (marker.colon_last > marker.end) marker.colon_last = marker.end;
|
||||
if (marker.at > marker.end) marker.at = marker.end;
|
||||
if (marker.colon_last > marker.end) marker.colon_last = marker.end;
|
||||
if (marker.fragment > marker.end) marker.fragment = marker.end;
|
||||
|
||||
/* Got all the URL components pegged out now */
|
||||
*markers = marker;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user