Skip to content

Commit

Permalink
release 2.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ede authored and tersmitten committed Jan 15, 2024
1 parent 387c41e commit 277f7b9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions duply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
# - remove url_encode, test for invalid chars n throw error instead
#
# CHANGELOG:
# 2.5.2 (30.11.2023)
# - bug #139: "ampersand (&) in gpg passphrase breaks gpg tests"
#
# 2.5.1 (4.10.2023)
# - quotewrap only strings with quotes ('") or spaces from now on
# - add --verbosity only if set in profile conf
Expand Down Expand Up @@ -553,7 +556,7 @@ function lookup {
ME_LONG="$0"
ME="$(basename $0)"
ME_NAME="${ME%%.*}"
ME_VERSION="2.5.1"
ME_VERSION="2.5.2"
ME_WEBSITE="https://duply.net"

# default config values
Expand Down Expand Up @@ -1319,7 +1322,7 @@ function qw { quotewrap $@; }
function quotewrap {
local param="$@"
# quote strings having non word chars (e.g. spaces)
if echo "$param" | awk '/[\047\042 ]/{exit 0}{exit 1}'; then
if echo "$param" | awk '/[^a-zA-Z0-9,\._\+\-@%\/]/{exit 0}{exit 1}'; then
echo "$param" | awk '{\
gsub(/[\047]/,"\047\\\047\047",$0);\
gsub(/[\042]/,"\047\\\042\047",$0);\
Expand Down

0 comments on commit 277f7b9

Please sign in to comment.