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:
parent
1561f0c4ea
commit
707698ce10
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue