mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
r19059: allow dash in URLs
This commit is contained in:
parent
5bfebbda7a
commit
3dade8d761
@ -114,7 +114,7 @@ static const char *http_local_path(struct websrv_context *web, const char *url)
|
||||
if (url[0] != '/') return NULL;
|
||||
|
||||
for (i=0;url[i];i++) {
|
||||
if ((!isalnum((unsigned char)url[i]) && !strchr("./_", url[i])) ||
|
||||
if ((!isalnum((unsigned char)url[i]) && !strchr("./_-", url[i])) ||
|
||||
(url[i] == '.' && strchr("/.", url[i+1]))) {
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user