summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2013-11-25 23:04:06 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2013-11-25 23:04:06 +0100
commit707698ce10aa57a3b4ab31a77fec6809a5923d34 (patch)
tree0c95451691ff8e546f14cb4b28cb2e61dea7e1f2
parent1561f0c4ea7801fef9689387e19c77d300f98a2d (diff)
downloadplan9front-707698ce10aa57a3b4ab31a77fec6809a5923d34.tar.xz
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.
-rw-r--r--sys/src/cmd/abaco/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/abaco/util.c b/sys/src/cmd/abaco/util.c
index d6872ec15..f2aae8324 100644
--- a/sys/src/cmd/abaco/util.c
+++ b/sys/src/cmd/abaco/util.c
@@ -639,7 +639,7 @@ reverseimages(Iimage **head)
}
char urlexpr[] = "^(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|"
- "prospero)://([a-zA-Z0-9_@\\-]+([.:][a-zA-Z0-9_@\\-]+)*)";
+ "prospero)://[^/]+";
Reprog *urlprog;
int