From 3bc7007f633aea24c135f245678593a931ce96d3 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 12 Nov 2006 16:19:22 +1300 Subject: [PATCH] Fix bug in handling of modified event where client does not send an "If-None-Match" header. --- inc/caldav-PUT.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/caldav-PUT.php b/inc/caldav-PUT.php index 94a68fdb..49008a93 100644 --- a/inc/caldav-PUT.php +++ b/inc/caldav-PUT.php @@ -102,8 +102,8 @@ if ( $put_action_type == 'INSERT' ) { header("HTTP/1.1 201 Created", true, 201); } else { - $qry = new PgQuery( "UPDATE caldav_data SET caldav_data=?, dav_etag=?, caldav_type=?, logged_user=?, modified=current_timestamp WHERE user_no=? AND dav_name=? AND dav_etag=?", - $raw_post, $etag, $ic->type, $session->user_no, $path_user_no, $request_path, $etag_if_match ); + $qry = new PgQuery( "UPDATE caldav_data SET caldav_data=?, dav_etag=?, caldav_type=?, logged_user=?, modified=current_timestamp WHERE user_no=? AND dav_name=?", + $raw_post, $etag, $ic->type, $session->user_no, $path_user_no, $request_path ); $qry->Exec("PUT"); header("HTTP/1.1 201 Replaced", true, 201);