Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update comment for what is URI_SAFE
  • Loading branch information
brianmario committed Sep 30, 2010
1 parent 52c474c commit fd2b636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/escape_utils.c
Expand Up @@ -8,7 +8,7 @@ static rb_encoding *utf8Encoding;
#define NOT_HEX(c) (c < 48 || c > 57) && (c < 65 || c > 90) && (c < 97 || c > 122)
#define UNHEX(c) (c >= '0' && c <= '9' ? c - '0' : c >= 'A' && c <= 'F' ? c - 'A' + 10 : c - 'a' + 10)
#define URI_SAFE(c) (c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= 38 && c <= 47) || c == 95 || c == 126
// \.:\/?\[\]\-_~\!\$&'\(\)\*\+,;=@
// ALPHA / DIGIT / "-" / "." / "_" / "~"

static size_t escape_html(unsigned char *out, const unsigned char *in, size_t in_len) {
size_t total = 0;
Expand Down

0 comments on commit fd2b636

Please sign in to comment.