From 5e3aec6df2ec3578e47030665f7b12c3c3cadd51 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 10 Sep 2018 21:08:19 -0700 Subject: [PATCH] GUACAMOLE-623: Add missing documentation for URL character test. --- src/protocols/kubernetes/url.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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')