From 707698ce10aa57a3b4ab31a77fec6809a5923d34 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 25 Nov 2013 23:04:06 +0100 Subject: 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. --- sys/src/cmd/abaco/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3