return std::string(ss.str());
}
+bool pathContainsProhibitedSubstrings(const std::string& path) {
+ ScopeLogger("Path: %s", path.c_str());
+
+ for (const auto& prohibited_substring : kProhibitedSubstrings) {
+ if (path.find(prohibited_substring) != std::string::npos) {
+ LoggerE("Prohibited substring found: %s", prohibited_substring.c_str());
+ return true;
+ }
+ }
+ return false;
+}
+
} // namespace archive
} // namespace extension