1
0
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:
Derrell Lipman 2006-10-03 18:07:46 +00:00 committed by Gerald (Jerry) Carter
parent 5bfebbda7a
commit 3dade8d761

View File

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