decode the URI always
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
27801d670f
commit
8f4b3af31c
3
sx-open
3
sx-open
|
@ -19,6 +19,8 @@ act() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
urldecode() { : "${*//+/ }"; printf '%b\n' "${_//%/\\x}"; }
|
||||||
|
|
||||||
# cfg foo bool = [true|1]
|
# cfg foo bool = [true|1]
|
||||||
# cfg foo [string] = 'bar'
|
# cfg foo [string] = 'bar'
|
||||||
# cfg foo
|
# cfg foo
|
||||||
|
@ -221,6 +223,7 @@ main() {
|
||||||
done
|
done
|
||||||
|
|
||||||
target=$1; [[ "$target" ]] || { usage; exit; }
|
target=$1; [[ "$target" ]] || { usage; exit; }
|
||||||
|
target=$(urldecode "$target")
|
||||||
|
|
||||||
cfg dryrun && {
|
cfg dryrun && {
|
||||||
printf 'Dry run: not actually running the handler\n' >&2
|
printf 'Dry run: not actually running the handler\n' >&2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user