From 7bd619819171ed42ddddd138d3e8219ddd01ea8c Mon Sep 17 00:00:00 2001 From: Ayush Agarwal Date: Fri, 18 Feb 2022 22:15:55 +0530 Subject: 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 --- tessen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tessen b/tessen index 2e3fecb..b6f006e 100755 --- a/tessen +++ b/tessen @@ -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 -- cgit v1.2.3