ealonso/liferay-portal — pull request #139 by lipusz (2014-02-24 10:24:11+00:00)
Title: [Regression] LPS-44511 Possible XSS in search results if "index.search.highlight.enabled=false"

Hey Eudaldo,

https://issues.liferay.com/browse/LPS-44511

We always have to do escape in Summary#_escapeAndHighlight, otherwise we make XSS possible in the search results.

I prefer to have one "return" statement only (if possible), plus this way we avoid having 2 "escape" calls.

Regards,
Tibor