Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

No escaping when <f:Selectitems> is used with a Map #4411

Open
Raqueta opened this issue Jan 20, 2020 · 0 comments
Open

No escaping when <f:Selectitems> is used with a Map #4411

Raqueta opened this issue Jan 20, 2020 · 0 comments

Comments

@Raqueta
Copy link

Raqueta commented Jan 20, 2020

If its values attributed is backed by a Map, <f:selectItems> ignores all other attributes, including itemLabelEscaped. Even worse, in this case the itemLabelEscaped attribute does not default to true, as specified here, but to false. Therefore the whole items list gets rendered without any escaping.
The culprit seems to be SelectItemsIterator, which fails to evaluate all attributes for Maps. It does so for SelectItem objects, arrays or Collections, though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant