* Restored the url-decoding of supplied GroupDAV pathnames. This repairs access...
authorArt Cancro <ajc@citadel.org>
Tue, 10 Feb 2009 19:09:17 +0000 (19:09 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 10 Feb 2009 19:09:17 +0000 (19:09 +0000)
webcit/groupdav_main.c

index 6a7f8beacada8e943b9860e97afbeab0b919e0e6..1b8a099df39f30bc12d036e2e5b6fdab285c591c 100644 (file)
@@ -135,24 +135,8 @@ void groupdav_main(HashList *HTTPHeaders,
                return;
        }
 
-//     extract_token(dav_method, req->line, 0, ' ', sizeof dav_method);
-//     extract_token(dav_pathname, req->line, 1, ' ', sizeof dav_pathname);
-       //// TODO unescape_input(dav_pathname);
-
-       /* If the request does not begin with "/groupdav", prepend it.  If
-        * we happen to introduce a double-slash, that's ok; we'll strip it
-        * in the next step.
-        * 
-        * (THIS IS DISABLED BECAUSE WE ARE NOW TRYING TO DO REAL DAV.)
-        *
-       if (strncasecmp(dav_pathname, "/groupdav", 9)) {
-               char buf[512];
-               snprintf(buf, sizeof buf, "/groupdav/%s", dav_pathname);
-               safestrncpy(dav_pathname, buf, sizeof dav_pathname);
-       }
-        *
-        */
-       
+       StrBufUnescape(DavPathname, 0);
+
        /* Remove any stray double-slashes in pathname */
        while (ds=strstr(ChrPtr(DavPathname), "//"), ds != NULL) {
                strcpy(ds, ds+1);