Skip to content

Escape all non-printable characters in strings fetched from the network #458

@matsduf

Description

@matsduf

TXT records can easily contain non-printable ASCII characters, but also non-ASCII characters (eighth bit set), and those can mess the terminal up. Other records with TXT like content can give the same problem. And even domain names can contain unwanted characters.

zonemaster-cli should check all strings and domain names fetched from the network before printing out. Non-printable ASCII characters and non-ASCII characters should be escaped or replaced.

One escaping option is to use same mechanism as Bind. ESC character is printed as \027 (decimal representation, always three digits).

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-FeatureType: New feature in software or test case description

    Type

    No type
    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