Commit Briefs


Omar Polo

iri: rework iri_unparse()

I'm not actually pround of the %s%s%s%s%s%s... etc, but it works fine. There's no need to do further escaping here, since consuming code is not supposed to reach inside the iri struct. It'll be made opaque maybe in the future.


Omar Polo

fix handling of gopher selectors

Much of telescope works in terms of URI, so we convert each gopher link to an URI. However, we didn't urlencode the path parameter, thus failing on every link that contains spaces or similar invalid (in URI paths) characters. Issue reported by hryjksn on github, thanks! https://github.com/omar-polo/telescope/issues/14


Omar Polo

iri: fix parse_path_absolute with path being "/"

it was mis-parsed as "" causing failures when resolving a relative URI.


Omar Polo

iri: add iri_setport()

takes a string because the internals of telescope makes it easier to use if a string.



Omar Polo

add missing #include "compat.h"



Omar Polo

iri: copy portstr too




Omar Polo

iri: zero iri_flags before parsing



Omar Polo

iri: implement iri_setquery


Omar Polo

iri: fix port parsing