git: 9front

Download patch

ref: 53fa466131515e621ad68b99171236d854aaa79a
parent: ba29aeeff08610c52c077945ac09ad01925e1cb8
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Nov 25 18:04:06 EST 2013

abaco: make validurl() accept internationalized domain names

validurl() is just used to check if the string is a full
absolute url with a protocol scheme. we do not have to
match the host part *exactly*, only if there is *something*
in the hostpart.

--- a/sys/src/cmd/abaco/util.c
+++ b/sys/src/cmd/abaco/util.c
@@ -639,7 +639,7 @@
 }
 
 char urlexpr[] = "^(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|"
-	"prospero)://([a-zA-Z0-9_@\\-]+([.:][a-zA-Z0-9_@\\-]+)*)";
+	"prospero)://[^/]+";
 Reprog	*urlprog;
 
 int
--