Skip to content

Commit

Permalink
ZK-5802: _listenFlex, _unlistenFlex declared on static member _ are u…
Browse files Browse the repository at this point in the history
…sed directly, cannot be overriden
  • Loading branch information
JamsonChan committed Oct 7, 2024
1 parent 83fc72b commit a3dc804
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions babel-plugin-expose-private-functions-and-variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ module.exports = function ({types: t}) {
)
);

// replace all private function calls to window.x.x.x._._func()
path.traverse({
CallExpression(callPath) {
const callee = callPath.node.callee;
if (t.isIdentifier(callee) && exports[callee.name])
callPath.node.callee = createNestedMemberExpression([exports[callee.name], ...dir]);
}
});
}
}
}
Expand Down
1 change: 1 addition & 0 deletions zkdoc/release-note
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ZK 10.1.0
ZK-5798: Client MVVM: Content missing in Include
ZK-5799: Javascript error when using Pdfviewer in Client MVVM
ZK-5801: Client MVVM: switching apply template causing javascript error
ZK-5802: _listenFlex, _unlistenFlex declared on static member _ are used directly, cannot be overriden

* Upgrade Notes
+ Remove Htmls.encodeJavaScript(), Strings.encodeJavaScript(), Strings.escape() with Strings.ESCAPE_JAVASCRIPT, and replace them with OWASP Java Encoder APIs instead.
Expand Down

0 comments on commit a3dc804

Please sign in to comment.