mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +00:00
Remove ancient hack to cope with broken Evolution < v1.9
This commit is contained in:
parent
53240804cc
commit
640f2e64f2
@ -6,24 +6,10 @@
|
|||||||
* @subpackage caldav
|
* @subpackage caldav
|
||||||
* @author Andrew McMillan <andrew@mcmillan.net.nz>
|
* @author Andrew McMillan <andrew@mcmillan.net.nz>
|
||||||
* @copyright Catalyst .Net Ltd, Morphoss Ltd <http://www.morphoss.com/>
|
* @copyright Catalyst .Net Ltd, Morphoss Ltd <http://www.morphoss.com/>
|
||||||
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2
|
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2 or later
|
||||||
*/
|
*/
|
||||||
dbg_error_log("delete", "DELETE method handler");
|
dbg_error_log("delete", "DELETE method handler");
|
||||||
|
|
||||||
/**
|
|
||||||
* etag_none_match, if set, is telling us only to DELETE if it fails to match. Likewise etag_if_match
|
|
||||||
* is telling us only to DELETE if it successfully matches the ETag. Se Evolution's Bugzilla for the
|
|
||||||
* truth about Evolution's broken handling of this: http://bugzilla.gnome.org/show_bug.cgi?id=349573
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ( !isset($request->etag_if_match) && isset($request->etag_none_match) && isset($_SERVER['HTTP_USER_AGENT'])
|
|
||||||
&& preg_match('#Evolution/([0-9]+[.][0-9]+)#', $_SERVER['HTTP_USER_AGENT'], $matches ) ) {
|
|
||||||
if ( doubleval($matches[1]) <= 1.9 ) {
|
|
||||||
$request->etag_if_match = $request->etag_none_match;
|
|
||||||
unset($request->etag_none_match);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$request->NeedPrivilege('DAV::unbind');
|
$request->NeedPrivilege('DAV::unbind');
|
||||||
|
|
||||||
$lock_opener = $request->FailIfLocked();
|
$lock_opener = $request->FailIfLocked();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user