diff options
author | Derrell Lipman <derrell@samba.org> | 2006-10-03 18:07:46 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:20:32 -0500 |
commit | 94eddd62ad40d634e316d8d1825401e530d84011 (patch) | |
tree | 326a4908a6e0ee197410c6644f2cca5668e4f0d5 /source4 | |
parent | 4b17a6dfbbc2d6adafbc9103b97fd78c43c2efe4 (diff) | |
download | samba-94eddd62ad40d634e316d8d1825401e530d84011.tar.gz samba-94eddd62ad40d634e316d8d1825401e530d84011.tar.bz2 samba-94eddd62ad40d634e316d8d1825401e530d84011.zip |
r19059: allow dash in URLs
(This used to be commit 3dade8d761c4a342cf5ee9dba8d10812eb22b877)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/web_server/http.c | 2 |
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; } |