-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quotation marks get html escape in file comments #28243
Comments
seems the bug is likely in the will have the investigate upstream |
it looks like the webdav library is using "fast-xml-parser" https://github.com/perry-mitchell/webdav-client/blob/master/source/tools/xml.ts#L1 which itself doesn't support parsing entities: NaturalIntelligence/fast-xml-parser#297 also to note, there can be security concerns when parsing certain special entities but not sure if those concerns apply on the browser side |
thanks for pointing out. |
until it's solved maybe we can explicitly parse the message value's entities using a similar approach. I'm sure we can make it work. however, the previous discoveries mean that there are many other places in Nextcloud where the lib is used and where entities are likely not parsed |
How to use GitHub
Steps to reproduce
"
) character.Expected behaviour
The entered double-quote character should display when viewing the comment.
Actual behaviour
The double-quote character is replaced by the sequence
"
However, the "Activity" tab correctly shows the double-quote character.
Server configuration
Operating system:
Official Docker Apache container.
Web server:
Apache
Database:
mariadb
PHP version:
7.4.21
Nextcloud version: (see Nextcloud admin page)
22.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install
Where did you install Nextcloud from:
docker.io/library/nextcloud
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
Client configuration
Browser:
Chrome
Operating system:
Fedora 34
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: