MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / IsAcceptableSessionName

Function IsAcceptableSessionName

libi2pd_client/SAM.cpp:326–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324 }
325
326 static bool IsAcceptableSessionName(std::string_view str)
327 {
328 auto itr = str.begin();
329 while(itr != str.end())
330 {
331 char ch = *itr;
332 ++itr;
333 if (ch == '<' || ch == '>' || ch == '"' || ch == '\'' || ch == '/')
334 return false;
335 }
336 return true;
337 }
338
339 void SAMSocket::ProcessSessionCreate (std::string_view buf)
340 {

Callers 1

ProcessSessionCreateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected