Skip to content

Possible security vulnerability #147

Open
@carlosmintfan

Description

@carlosmintfan

While I've not tested it, this line:

looks to me like it'd break out the JavaScript string if the stringified $value contains the ' character.
Proposed fix: change the line to return json_encode((string) $value).
Thanks!

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