ref: 707698ce10aa57a3b4ab31a77fec6809a5923d34
parent: 1561f0c4ea7801fef9689387e19c77d300f98a2d
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
--
⑨