diff --git a/src/protocols/kubernetes/url.c b/src/protocols/kubernetes/url.c index 434cc87e..78c116e5 100644 --- a/src/protocols/kubernetes/url.c +++ b/src/protocols/kubernetes/url.c @@ -23,6 +23,17 @@ #include #include +/** + * Returns whether the given character is a character that need not be + * escaped when included as part of a component of a URL. + * + * @param c + * The character to test. + * + * @return + * Zero if the character does not need to be escaped when included as + * part of a component of a URL, non-zero otherwise. + */ static int guac_kubernetes_is_url_safe(char c) { return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')