Skip to content

Strip control characters #19

@zerolab

Description

@zerolab

PostgreSQL (and most other C software) rejects null characters (\0) in strings because reasons.

We should strip out any unwanted control characters from input (most of the C0 and C1 ranges, excluding whitespace).

Tip

To test via the browser, you can use this JS since I can't paste it as it will get removed/escaped.
Run this in the browser console on the edit page, then paste into the field:

copy("This is a null here -->\x00<---")

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