Browse Source

decode the URI always

Signed-off-by: fbt <fbt@fleshless.org>
master 1.6.4
Jack L. Frost 2 years ago
parent
commit
8f4b3af31c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      sx-open

+ 3
- 0
sx-open View File

@ -19,6 +19,8 @@ act() {
return 0
}
urldecode() { : "${*//+/ }"; printf '%b\n' "${_//%/\\x}"; }
# cfg foo bool = [true|1]
# cfg foo [string] = 'bar'
# cfg foo
@ -221,6 +223,7 @@ main() {
done
target=$1; [[ "$target" ]] || { usage; exit; }
target=$(urldecode "$target")
cfg dryrun && {
printf 'Dry run: not actually running the handler\n' >&2


Loading…
Cancel
Save