Skip to content

charsetReader can output characters that cause xml decoding to fail #1

Description

@acrispino

if an nzb has mangled character encoding somehow, charsetReader might translate characters into those that are not allowed in xml. This will cause xml decoding to fail with the error "illegal character code ..."

it would be worth it to check if a character falls outside of the valid range (http://golang.org/src/pkg/encoding/xml/xml.go#L962) and maybe drop it or convert it into the unicode replacement character.

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