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.
This commit is contained in:
cinap_lenrek 2013-11-25 23:04:06 +01:00
parent 1561f0c4ea
commit 707698ce10

View file

@ -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