Skip to content

Commit

Permalink
Document commit that removed InitialContext
Browse files Browse the repository at this point in the history
  • Loading branch information
singlethink authored and ddworken committed Jan 26, 2022
1 parent 6b4e7af commit 9d3acee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jar/jar.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ func (c *checker) needsJndiLookupCheck() bool {

// The JndiLookup class in log4j >=2.0-beta9 but <2.1 contains a reference to
// javax.naming.InitialContext that was removed in the 2.1 release.
// Relevant commit: https://github.com/apache/logging-log4j2/commit/cc30d6dd629cbf0529ce898d6c25305b2cff9f0e
var initialContextPattern = binaryregexp.MustCompile(binaryregexp.QuoteMeta(`javax/naming/InitialContext`))

// checkJndiLookup checks JndiLookup class bytecode for a reference to javax/naming/InitialContext,
Expand Down

0 comments on commit 9d3acee

Please sign in to comment.