Skip to content

Commit

Permalink
Continue the sanitiazation enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
winseros committed May 16, 2024
1 parent fa194cd commit ebcbf19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pbom/io/bb/sanitizedstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace pboman3::io {

bool SanitizedString::isCharLegal(const QChar& chr) {
if (chr == '<' || chr == '>' || chr == ':' || chr == ':' || chr == '"' || chr == '\\' || chr == '/' ||
chr == '|' || chr == '?' || chr == '*') {
chr == '|' || chr == '?' || chr == '*' || chr == '{' || chr == '}') {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion pbom/io/jf/zerosizefilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace pboman3::io {
bool ZeroSizeFilter::isJunk(const PboNodeEntity* entry) const {
return entry->dataSize() <= 0;
return entry->dataSize() <= 0 || entry->packingMethod() == PboPackingMethod::Packed && entry->originalSize() <= 0;
}
}

0 comments on commit ebcbf19

Please sign in to comment.