fix bug introduced in last version regarding full URLs

gemini://example.com was incorrectly parsed.
This commit is contained in:
Omar Polo 2020-11-18 09:45:28 +01:00
parent dd3895586f
commit c603f1260d
No known key found for this signature in database
GPG Key ID: 35F98C96A1786F0D
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
2020-11-18 Omar Polo <op@omarpolo.com>
* 1.3.2 tagged
* gmid.c (url_after_proto): fix bug introduced in last version
regarding full URLs with explicit gemini protocol.
* 1.3.1 tagged
* gmid.c (url_after_proto): correct url parsing: accept URLs

2
gmid.c
View File

@ -171,7 +171,7 @@ char *
url_after_proto(char *url)
{
char *s;
const char *proto = "gemini";
const char *proto = "gemini:";
const char *marker = "//";
/* a relative URL */