mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-15 08:20:12 +00:00
do not output unescaped XML special characters in if-match error message (fixes: #113)
This commit is contained in:
parent
e0b8ecada5
commit
e94d69d3f7
@ -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 == '*') ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user