Anonymous View
Skip to content

Throw on large string #2

@ErnestBrandi

Description

@ErnestBrandi

Hi, it throws on line 17 with large input strings

if (isBase64(arg)) arg = atob(arg)

I think you can just replace this with

try {
	arg = atob(arg)
} catch(err) {}

it will throw (and be catched) if it is not a base64 string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions