Allow shared / read locks as well as exclusive / write.

This commit is contained in:
Andrew McMillan 2006-12-09 14:09:24 +13:00
parent 51ab4797aa
commit b38dfb190e

View File

@ -48,6 +48,7 @@ foreach( $request->xml_tags AS $k => $v ) {
}
break;
case 'DAV::SHARED':
case 'DAV::EXCLUSIVE':
dbg_error_log( "LOCK", ":Request: %s -> %s", $v['type'], $tag );
if ( $inside['DAV::LOCKSCOPE'] && $v['type'] == "complete" ) {
@ -55,7 +56,7 @@ foreach( $request->xml_tags AS $k => $v ) {
}
break;
case 'DAV::WRITE':
case 'DAV::READ':
dbg_error_log( "LOCK", ":Request: %s -> %s", $v['type'], $tag );
if ( $inside['DAV::LOCKTYPE'] && $v['type'] == "complete" ) {
$locktype = strtolower(substr($tag,5));