_msg: Add more security

This commit is contained in:
Stig-Ørjan Smelror 2024-02-14 16:01:14 +01:00
parent 9dd003a815
commit 5907393b77

4
qsgen2
View File

@ -78,9 +78,9 @@ function _msg() {
local full_msg="" local full_msg=""
for arg in "$@"; do for arg in "$@"; do
if [[ -n "${(q)qsgenlang[$arg]}" ]]; then if [[ -n "${(qk)qsgenlang[$arg]}" ]]; then
echo "Found key: $arg" # Debug line to confirm key is found echo "Found key: $arg" # Debug line to confirm key is found
full_msg+="${(q)qsgenlang[$arg]}" full_msg+="${(qk)qsgenlang[$arg]}"
else else
echo "Key not found: $arg" # Debug line for keys not found echo "Key not found: $arg" # Debug line for keys not found
full_msg+="$arg" full_msg+="$arg"