LogDoctor 4.01
Parse Apache2/Nginx/IIS logs and view dinamically generated statistics
|
Functions | |
std::string | sanitizedMethod (const std::string &item) |
Returns a sanitized item which can be inserted in a list. | |
std::string | sanitizedUri (const std::string &item) |
Returns a sanitized item which can be inserted in a list. | |
std::string | sanitizedClient (const std::string &item) |
Returns a sanitized item which can be inserted in a list. | |
std::string | sanitizedUserAgent (std::string_view item) |
Returns a sanitized item which can be inserted in a list. | |
std::string BWutils::sanitizedClient | ( | const std::string & | item | ) |
Returns a sanitized item which can be inserted in a list.
This functions doesn't check it the client is actually a valid IP address, only whether it is composed by the proper set of characters (for an IPv4 or an IPv6)
BWlistException |
std::string BWutils::sanitizedMethod | ( | const std::string & | item | ) |
Returns a sanitized item which can be inserted in a list.
This fuction doesn't check if the method is actually a valid HTTP method, only whether the given string is sintattically acceptable.
BWlistException |
std::string BWutils::sanitizedUri | ( | const std::string & | item | ) |
Returns a sanitized item which can be inserted in a list.
This function percent-encodes some of the characters in the provided string: /#&?=+
BWlistException |
std::string BWutils::sanitizedUserAgent | ( | std::string_view | item | ) |
Returns a sanitized item which can be inserted in a list.
This function back-slashes every double-quotes in the provided string
BWlistException |