Skip to content

Commit

Permalink
lib-common: CommonLog: Disable JavaScript escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlschuetter committed Dec 4, 2023
1 parent fac20d6 commit 19c8ee7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jacline-lib-common/src/main/jacline/log.patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ goog.module("kohlschutter.log.Log$impl$patched");
var CommonLog = goog.require("kohlschutter.log.Log$impl");

function logTo(target, message, args) {
message = message.replaceAll("%", "%%"); // disallow JavaScript console escapes
if (args.length == 0) {
target(message);
return;
Expand Down

0 comments on commit 19c8ee7

Please sign in to comment.