This is an automated email from the ASF dual-hosted git repository.
doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git
The following commit(s) were added to refs/heads/master by this push:
new 00221245 EMPIREDB-451: TextAreaControl: fix missing escapeHtml
00221245 is described below
commit 00221245ca17ef15ba4ff5c10d96feb7746ceecb
Author: Rainer Döbele <[email protected]>
AuthorDate: Mon Jan 13 11:01:16 2025 +0100
EMPIREDB-451:
TextAreaControl: fix missing escapeHtml
---
.../java/org/apache/empire/jsf2/controls/TextAreaInputControl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextAreaInputControl.java
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextAreaInputControl.java
index 4c6b40af..4c6c762d 100644
---
a/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextAreaInputControl.java
+++
b/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextAreaInputControl.java
@@ -125,9 +125,9 @@ public class TextAreaInputControl extends InputControl
}
@Override
- protected String formatValue(Object value, ValueInfo vi)
+ public String formatValue(Object value, ValueInfo vi, boolean escapeHtml)
{
- String strVal = super.formatValue(value, vi);
+ String strVal = super.formatValue(value, vi, true);
// replace CR/LF by <BR/>
if (strVal.indexOf("\r\n")>0)
{ // replace CR with <BR/>