| 279 | } |
| 280 | |
| 281 | bool StringUtil::isShellSafe(const std::string& str) { |
| 282 | for (const auto& c : str) { |
| 283 | if (!isShellSafe(c)) { |
| 284 | return false; |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | return true; |
| 289 | } |
| 290 | |
| 291 | bool StringUtil::isShellSafe(char chr) { |
| 292 | bool is_safe = |
nothing calls this directly
no outgoing calls
no test coverage detected