Skip to content

Commit

Permalink
Merge pull request #7 from miya-sun/extend_validation
Browse files Browse the repository at this point in the history
allow uppercase alphabet in validation
  • Loading branch information
pyama86 authored Feb 27, 2019
2 parents 2af4558 + 9233cb1 commit 93f8304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stns.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ int stns_exec_cmd(char *cmd, char *arg, stns_response_t *r)
r->size = 0;
r->status_code = (long)200;

if (!match("^[a-z0-9_.=\?]+$", arg)) {
if (!match("^[a-zA-Z0-9_.=\?]+$", arg)) {
return 0;
}

Expand Down

0 comments on commit 93f8304

Please sign in to comment.