nextcloud-server/apps/comments
Daniel Calviño Sánchez 5442f8efd6 Fix HTML entities not decoded in comment just added
The XML data received from the comments endpoint has an inconsistent
encoding; some entities are encoded once and others are encoded twice.
When the comment list is loaded the comments are fetched using
GetComments, which handles all that, and therefore shows the messages
and author names as expected.

However, when a new comment is posted the list is not got again; instead
the new comment is loaded from the comment data returned after posting
it. This is done in NewComment, which did not decode the messages nor
the author names, and therefore showed, for example, "&" instead of
"&".

To solve that now the same decoding logic used in GetComments is applied
too in NewComment.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-11-10 13:50:52 +07:00
..
appinfo Master is now 26 2022-09-22 11:56:15 +07:00
composer Rebuild autoloader 2022-09-20 10:33:26 +07:00
img Update comments icon to use updated core one 2019-06-26 10:24:20 +07:00
l10n [tx-robot] updated from transifex 2022-11-05 02:15:04 +07:00
lib Merge pull request #33615 from nextcloud/perf/noid/user-displayname-cache-for-activity-providers 2022-08-19 12:28:44 +07:00
src Fix HTML entities not decoded in comment just added 2022-11-10 13:50:52 +07:00
tests Fix jsunit tests 2022-09-01 14:15:42 +07:00
.bowerrc add At.js and dependencies 2017-10-22 14:14:33 +07:00
.l10nignore Update .l10nignore for apps to exclude bundled JS files 2020-09-15 12:28:43 +07:00