Skip to content

Commit

Permalink
libpriv/util: Expand set of safe shell chars
Browse files Browse the repository at this point in the history
Expand the set to include '/' and '=' since those don't need escaping in
shells.

Closes: #1824
Approved by: rfairley
  • Loading branch information
jlebon authored and rh-atomic-bot committed May 8, 2019
1 parent d113b6a commit 01fbaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libpriv/rpmostree-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ rpmostree_maybe_shell_quote (const char *s)
static GRegex *safe_chars_regex;
if (g_once_init_enter (&regex_initialized))
{
safe_chars_regex = g_regex_new ("^[[:alnum:]-._]+$", 0, 0, NULL);
safe_chars_regex = g_regex_new ("^[[:alnum:]-._/=]+$", 0, 0, NULL);
g_assert (safe_chars_regex);
g_once_init_leave (&regex_initialized, 1);
}
Expand Down

0 comments on commit 01fbaa7

Please sign in to comment.