git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b17a6d
)
r19059: allow dash in URLs
author
Derrell Lipman
<derrell@samba.org>
Tue, 3 Oct 2006 18:07:46 +0000
(18:07 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:20:32 +0000
(14:20 -0500)
(This used to be commit
3dade8d761c4a342cf5ee9dba8d10812eb22b877
)
source4/web_server/http.c
patch
|
blob
|
history
diff --git
a/source4/web_server/http.c
b/source4/web_server/http.c
index 057acc70b30d9cb1e2677425baf675b7f3532b19..44bda43964ffb872811c6d1fda90095ad423f96d 100644
(file)
--- 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;
}