-
-
Notifications
You must be signed in to change notification settings - Fork 555
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
XWIKI-17374: Fix escaping in property displayer #1315
Conversation
...go-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/commentsinline.vm
Outdated
Show resolved
Hide resolved
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
Outdated
Show resolved
Hide resolved
xwiki-platform-core/xwiki-platform-web/src/main/webapp/templates/macros.vm
Outdated
Show resolved
Hide resolved
...m-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/objects/classes/TextAreaClass.java
Outdated
Show resolved
Hide resolved
...tform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/objects/classes/ListClass.java
Outdated
Show resolved
Hide resolved
...orm-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/objects/classes/StringClass.java
Outdated
Show resolved
Hide resolved
...go-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/commentsinline.vm
Outdated
Show resolved
Hide resolved
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
Outdated
Show resolved
Hide resolved
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
Outdated
Show resolved
Hide resolved
xwiki-platform-core/xwiki-platform-web/src/main/webapp/templates/macros.vm
Outdated
Show resolved
Hide resolved
xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/js/xwiki/xwiki.js
Outdated
Show resolved
Hide resolved
xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/js/xwiki/xwiki.js
Outdated
Show resolved
Hide resolved
xwiki-platform-core/xwiki-platform-web/src/main/webapp/templates/macros.vm
Outdated
Show resolved
Hide resolved
...go-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/commentsinline.vm
Outdated
Show resolved
Hide resolved
...tform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/objects/classes/ListClass.java
Outdated
Show resolved
Hide resolved
xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/js/xwiki/xwiki.js
Outdated
Show resolved
Hide resolved
8539ecd
to
f0a446f
Compare
This PR should not be merge until xwiki/xwiki-commons#102 is merged and build by the CI. |
f0a446f
to
27e6a66
Compare
...orm-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/objects/classes/StringClass.java
Show resolved
Hide resolved
xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/js/xwiki/xwiki.js
Outdated
Show resolved
Hide resolved
27e6a66
to
5cf8995
Compare
...orm-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/objects/classes/StringClass.java
Outdated
Show resolved
Hide resolved
@manuelleduc I guess you need to update that one too now that xwiki/xwiki-commons#102 has been merged? |
This PR is up to date in regard to xwiki/xwiki-commons#102. |
xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/js/xwiki/xwiki.js
Outdated
Show resolved
Hide resolved
BaseProperty property = (BaseProperty) object.safeget(name); | ||
String content; | ||
if (property != null) { | ||
content = property.toText(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would have put the buffer.append
directly in the if instead of going through a content
variable but I guess it's a matter of taste.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BaseProperty property = (BaseProperty) object.safeget(name); | ||
String content; | ||
if (property != null) { | ||
content = property.toText(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar comment than above but with the following if
instead of just a buffer.append (i.e. avoid useless work when the property is null).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Else branch removed here too https://github.com/xwiki/xwiki-platform/pull/1315/files#diff-912dd4275a5ac5f2116abef20711b489R384
Code cleanup
9ad8a79
to
2ec8440
Compare
(cherry picked from commit 82c31ea)
(cherry picked from commit 82c31ea)
No description provided.