activity
activity copied to clipboard
`subject` field is wrongly XML escaped in the OCS API
This is a spinoff of https://github.com/owncloud/client/issues/5576 (see the screenshot there)
Steps to reproduce
- Modify a file that has a single quote in it's name (
'
) - Query
ocs/v1.php/cloud/activity?format=json
- Observe that the file name in the data's
subject
field is XML escaped, (while thefile
field is not)
Also if you don't use format=json
, the file name is escaped twice.
Expected behaviour
It should be consistent, and none of the field should be XML escaped in the JSON.
Actual behaviour
The subject
field is XML escaped.