Skip to content

Commit

Permalink
Fixes #250
Browse files Browse the repository at this point in the history
Allow '#' as part of the string name patterns.
  • Loading branch information
khurtado authored May 15, 2019
1 parent eaf113c commit 3384437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ char *userInputPathFilter(const char *input, int allowSlash) {
rptr = input;
wptr = ret;
while (wptr - ret < len && *rptr != 0) {
if (isalnum(*rptr) || *rptr == '_' || *rptr == ':' || *rptr == '.' || *rptr == '+' || *rptr == '-') {
if (isalnum(*rptr) || *rptr == '_' || *rptr == ':' || *rptr == '.' || *rptr == '+' || *rptr == '-' || *rptr == '#') {
*wptr++ = *rptr;
}
if (allowSlash && *rptr == '/') {
Expand Down

0 comments on commit 3384437

Please sign in to comment.