summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/web_server/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/web_server/http.c b/source4/web_server/http.c
index 057acc70b3..44bda43964 100644
--- a/source4/web_server/http.c
+++ b/source4/web_server/http.c
@@ -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;
}