Skip to content

can't decode base64-encoded data with linebreaks #39

@a1021101652

Description

@a1021101652

Can't remove '\n' directly at here ,because of the character not in standard base64-encoded data ,but i don't know better solution

issue at :base64.cpp:171
`
if (remove_linebreaks) {

   std::string copy(encoded_string);

   copy.erase(std::remove(copy.begin(), copy.end(), '\n'), copy.end());

   return base64_decode(copy, false);
}`

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