Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
import org.osgi.service.packageadmin.PackageAdmin;
import org.osgi.util.tracker.ServiceTracker;
import org.osgi.util.tracker.ServiceTrackerCustomizer;
import org.owasp.encoder.Encode;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
Expand Down Expand Up @@ -764,7 +763,7 @@ private void keyVal(final List<Map<String, Object>> props, final String key, fin
final Map<String, Object> obj = new LinkedHashMap<String, Object>();
obj.put("key", key);
if ( val instanceof String ) {
obj.put("value", Encode.forJavaScript((String)val));
obj.put("value", val); // escaping happens when writing into JSON via JSONWriter
} else {
obj.put("value", val);
}
Expand Down