summaryrefslogtreecommitdiffstats
path: root/source4/web_server
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2006-10-03 18:07:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:32 -0500
commit94eddd62ad40d634e316d8d1825401e530d84011 (patch)
tree326a4908a6e0ee197410c6644f2cca5668e4f0d5 /source4/web_server
parent4b17a6dfbbc2d6adafbc9103b97fd78c43c2efe4 (diff)
downloadsamba-94eddd62ad40d634e316d8d1825401e530d84011.tar.gz
samba-94eddd62ad40d634e316d8d1825401e530d84011.tar.xz
samba-94eddd62ad40d634e316d8d1825401e530d84011.zip
r19059: allow dash in URLs
(This used to be commit 3dade8d761c4a342cf5ee9dba8d10812eb22b877)
Diffstat (limited to 'source4/web_server')
-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 057acc70b30..44bda43964f 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;
}