diff options
author | Ayush Agarwal <ayush@fastmail.in> | 2022-02-18 22:15:55 +0530 |
---|---|---|
committer | Ayush Agarwal <ayush@fastmail.in> | 2022-02-18 22:15:55 +0530 |
commit | 7bd619819171ed42ddddd138d3e8219ddd01ea8c (patch) | |
tree | 30d13a55fc69d074e5fe1b6e50e660d7fea4712a | |
parent | 6a86f0ac05a756c67be7d5ecae98e96e04c6232a (diff) |
refactor: make the config file regex more strict
this should prevent expansion of $PS escape sequences like \u for
username
wildcard characters have been removed as well
-rwxr-xr-x | tessen | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -714,7 +714,7 @@ parse_config() { local line idx key val local -a config_arr - local config_regex='^[[:alpha:]_]+="[[:alnum:]~_.\/^$|()*?-]+"$' + local config_regex='^[[:alpha:]_]+="[[:alnum:]~_./^$|()-]+"$' # in case the user hasn't provided an explicit location, we'll have to check # if the default file exists before we parse it if [[ -s $tsn_config ]]; then |