Repository: guacamole-server Updated Branches: refs/heads/master 54fda2136 -> 43db1965e
GUACAMOLE-623: Add missing documentation for URL character test. Project: http://git-wip-us.apache.org/repos/asf/guacamole-server/repo Commit: http://git-wip-us.apache.org/repos/asf/guacamole-server/commit/5e3aec6d Tree: http://git-wip-us.apache.org/repos/asf/guacamole-server/tree/5e3aec6d Diff: http://git-wip-us.apache.org/repos/asf/guacamole-server/diff/5e3aec6d Branch: refs/heads/master Commit: 5e3aec6df2ec3578e47030665f7b12c3c3cadd51 Parents: 371eed1 Author: Michael Jumper <mjum...@apache.org> Authored: Mon Sep 10 21:08:19 2018 -0700 Committer: Michael Jumper <mjum...@apache.org> Committed: Tue Sep 25 21:30:51 2018 -0700 ---------------------------------------------------------------------- src/protocols/kubernetes/url.c | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/guacamole-server/blob/5e3aec6d/src/protocols/kubernetes/url.c ---------------------------------------------------------------------- diff --git a/src/protocols/kubernetes/url.c b/src/protocols/kubernetes/url.c index 434cc87..78c116e 100644 --- a/src/protocols/kubernetes/url.c +++ b/src/protocols/kubernetes/url.c @@ -23,6 +23,17 @@ #include <stdlib.h> #include <string.h> +/** + * 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')