Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

"with" statement compatibility issues on ESAPI.js #22

Description

@enrico-usai

In row 533 of ESAPI.js there is:
with(org.owasp.esapi.Logger) {
that causes some problems in Firefox, because the org.owasp.esapi.Logger.ALL and other Logger constants result undefined.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/with
Use of the with statement is not recommended, as it may be the source of confusing bugs and compatibility issues.

Tested with Firefox 50.0.1 (Windows)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions