MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ValidateToken

Method ValidateToken

lib/remote/url.cpp:353–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353bool Url::ValidateToken(const String& token, const String& symbols)
354{
355 for (const char ch : token) {
356 if (symbols.FindFirstOf(ch) == String::NPos)
357 return false;
358 }
359
360 return true;
361}

Callers

nothing calls this directly

Calls 1

FindFirstOfMethod · 0.80

Tested by

no test coverage detected