Skip to content

Password with special shell characters (e.g. |, )) causes eval syntax error #27

Description

@ostgardh

When passing a password containing shell-special characters such as | (pipe) or ) (parenthesis) via -dxPassword, the script fails with a syntax error.

Fix

Before

regEx="[[:space:]]|." # matches a string with a space character or dot in it.

After

regEx='[[:space:].|();&<>!$`\"]' # matches a string with a special shell character or dot in it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions