shithub: castor9

Download patch

ref: 894d1d534e687fac3dae6cc64db07ad07f55a891
parent: bbda53b143c07207a137b2a8a64d0c42c498a79b
author: Julien Blanchard <julien@typed-hole.org>
date: Thu Dec 10 06:54:12 EST 2020

Fix link parsing

--- a/castor.c
+++ b/castor.c
@@ -527,7 +527,7 @@
 	if(link==nil)
 		return;
 
-	if(strbeg(link, "gemini://") != 0 || strstr(link, "://") != nil){
+	if(strbeg(link, "gemini://") == 0 || strstr(link, "://") != nil){
 		next_url = urlparse(nil, link);
 	}else{
 		/* assuming relative URL */