svn commit: samba r19059 - in branches/SAMBA_4_0/source/web_server: .

derrell at samba.org derrell at samba.org
Tue Oct 3 18:07:47 GMT 2006


Author: derrell
Date: 2006-10-03 18:07:46 +0000 (Tue, 03 Oct 2006)
New Revision: 19059

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19059

Log:
allow dash in URLs
Modified:
   branches/SAMBA_4_0/source/web_server/http.c


Changeset:
Modified: branches/SAMBA_4_0/source/web_server/http.c
===================================================================
--- branches/SAMBA_4_0/source/web_server/http.c	2006-10-03 17:14:18 UTC (rev 19058)
+++ branches/SAMBA_4_0/source/web_server/http.c	2006-10-03 18:07:46 UTC (rev 19059)
@@ -114,7 +114,7 @@
 	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;
 		}



More information about the samba-cvs mailing list