hprintf(
"Server: %s / %s\r\n"
"Connection: close\r\n",
- PACKAGE_STRING, serv_info.serv_software
+ PACKAGE_STRING, ChrPtr(serv_info.serv_software)
);
}
/*
* string conversion function
*/
-void euid_escapize(char *target, char *source) {
+void euid_escapize(char *target, const char *source) {
int i, len;
int target_length = 0;
/*
* string conversion function
*/
-void euid_unescapize(char *target, char *source) {
+void euid_unescapize(char *target, const char *source) {
int a, b, len;
char hex[3];
int target_length = 0;
hprintf("HTTP/1.1 401 Unauthorized\r\n");
groupdav_common_headers();
hprintf("WWW-Authenticate: Basic realm=\"%s\"\r\n",
- serv_info.serv_humannode);
+ ChrPtr(serv_info.serv_humannode));
hprintf("Content-Length: 0\r\n");
end_burst();
return;
* other variants of DAV in the future.
*/
if (!strcasecmp(ChrPtr(DavMethod), "OPTIONS")) {
- groupdav_options(ChrPtr(DavPathname));
+ groupdav_options(DavPathname);
return;
}
* room, or to list all relevant rooms on the server.
*/
if (!strcasecmp(ChrPtr(DavMethod), "PROPFIND")) {
- groupdav_propfind(ChrPtr(DavPathname), dav_depth,
+ groupdav_propfind(DavPathname, dav_depth,
dav_content_type, dav_content,
Offset);
return;
* The GET method is used for fetching individual items.
*/
if (!strcasecmp(ChrPtr(DavMethod), "GET")) {
- groupdav_get(ChrPtr(DavPathname));
+ groupdav_get(DavPathname);
return;
}
* The PUT method is used to add or modify items.
*/
if (!strcasecmp(ChrPtr(DavMethod), "PUT")) {
- groupdav_put(ChrPtr(DavPathname), dav_ifmatch,
+ groupdav_put(DavPathname, dav_ifmatch,
ChrPtr(dav_content_type), dav_content,
Offset);
return;