Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 18, 2024
1 parent 2cc20e6 commit 7e6e1aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/ipi/driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ char *trimwhitespace(char *str) {
}

bool isValidPath(const std::string &path) {
if (path.find("..") != std::string::npos || path.find('/') != std::string::npos || path.find('\\') != std::string::npos) {
if (path.find("..") != std::string::npos ||
path.find('/') != std::string::npos ||
path.find('\\') != std::string::npos) {
return false;
}
return true;
Expand Down

0 comments on commit 7e6e1aa

Please sign in to comment.