Browse Source

also remove U+007F in header values.

master
roker 11 months ago
parent
commit
4fbe569877
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/headerparser.cc

+ 1
- 1
src/headerparser.cc View File

@ -41,7 +41,7 @@ std::string robust_to_utf8(sv s)
// NUL bytes confuse C code, especially the Engine.
// MIME-15: remove all C0 control characters.
ret.erase( std::remove_if(ret.begin(), ret.end(), [](char c){ return uint8_t(c) < ' '; } ), ret.end() );
ret.erase( std::remove_if(ret.begin(), ret.end(), [](char c){ return uint8_t(c) < ' ' || c=='\177'; } ), ret.end() );
return ret;
}


Loading…
Cancel
Save