diff options
author | sinanmohd <sinan@firemail.cc> | 2023-08-05 19:21:27 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-08-06 11:21:06 +0530 |
commit | e6188bb8d98574669d5d7f7a7d4c6aa595aeaacf (patch) | |
tree | 89321a97d366a9ef76a979b009cffd0ce51b559a | |
parent | 1d4994d432cca227730ed97a54b755be1954accc (diff) |
damb: invalidate values with newline character
-rwxr-xr-x | damb | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -152,6 +152,10 @@ verify_val() { # verify_val <value> + case "$1" in + *"\n"*) return 1 ;; + esac + case "$(file --brief --dereference --mime-type "$1")" in audio/*|video/*) ;; *) @@ -216,7 +220,7 @@ set_clip() { if [ -n "$WAYLAND_DISPLAY" ]; then dep_check "wl-paste" - _clip="$(wl-paste)" + _clip="$(wl-paste -n)" elif [ -n "$DISPLAY" ]; then dep_check "xclip" _clip="$(xclip -o)" |