mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 10:38:08 +01:00
guri: Add links to RFC 3986 in code comments
This should make the RFC easier to refer to in future. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
f873b88f89
commit
41a21c3566
@ -1110,6 +1110,8 @@ g_uri_is_valid (const gchar *uri_string,
|
|||||||
|
|
||||||
/* This does the "Remove Dot Segments" algorithm from section 5.2.4 of
|
/* This does the "Remove Dot Segments" algorithm from section 5.2.4 of
|
||||||
* RFC 3986, except that @path is modified in place.
|
* RFC 3986, except that @path is modified in place.
|
||||||
|
*
|
||||||
|
* See https://tools.ietf.org/html/rfc3986#section-5.2.4
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
remove_dot_segments (gchar *path)
|
remove_dot_segments (gchar *path)
|
||||||
@ -1247,6 +1249,8 @@ g_uri_parse_relative (GUri *base_uri,
|
|||||||
{
|
{
|
||||||
/* This is section 5.2.2 of RFC 3986, except that we're doing
|
/* This is section 5.2.2 of RFC 3986, except that we're doing
|
||||||
* it in place in @uri rather than copying from R to T.
|
* it in place in @uri rather than copying from R to T.
|
||||||
|
*
|
||||||
|
* See https://tools.ietf.org/html/rfc3986#section-5.2.2
|
||||||
*/
|
*/
|
||||||
if (uri->scheme)
|
if (uri->scheme)
|
||||||
remove_dot_segments (uri->path);
|
remove_dot_segments (uri->path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user