_msg: Add more security
This commit is contained in:
parent
9dd003a815
commit
5907393b77
4
qsgen2
4
qsgen2
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user