You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2004/03/14 20:51:08 UTC
cvs commit: httpd-2.0/modules/dav/main util.c
jorton 2004/03/14 11:51:08
Modified: modules/dav/main util.c
Log:
Forward-port from mod_dav 1.0:
* modules/dav/main/util.c (dav_validate_resource_state): Fix a 2617
violation: if the lock user validation fails, rather than giving a 401
without a WWW-Authenticate header, give a 403.
Revision Changes Path
1.54 +1 -1 httpd-2.0/modules/dav/main/util.c
Index: util.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/dav/main/util.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -w -d -u -r1.53 -r1.54
--- util.c 9 Feb 2004 20:29:18 -0000 1.53
+++ util.c 14 Mar 2004 19:51:08 -0000 1.54
@@ -1166,7 +1166,7 @@
"\" submitted a locktoken created "
"by user \"",
lock->auth_user, "\".", NULL);
- return dav_new_error(p, HTTP_UNAUTHORIZED, 0, errmsg);
+ return dav_new_error(p, HTTP_FORBIDDEN, 0, errmsg);
}
/*