From e94d69d3f77aeb669d91fabeb8cfd38ba68dfbae Mon Sep 17 00:00:00 2001 From: Florian Schlichting Date: Sat, 8 Apr 2017 13:54:49 +0200 Subject: [PATCH] do not output unescaped XML special characters in if-match error message (fixes: #113) --- inc/CalDAVRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index af4224f3..fd2e323c 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -1149,7 +1149,7 @@ EOSQL; * entity exists, the server MUST NOT perform the requested method, and * MUST return a 412 (Precondition Failed) response. */ - $this->PreconditionFailed(412,'if-match',sprintf('Existing resource ETag of <<%s>> does not match <<%s>>', $dest_etag, $this->etag_if_match) ); + $this->PreconditionFailed(412,'if-match',sprintf('Existing resource ETag of %s does not match %s', $dest_etag, $this->etag_if_match) ); } else if ( isset($this->etag_none_match) && $this->etag_none_match != '' && ($this->etag_none_match == $dest_etag || $this->etag_none_match == '*') ) {