Escape magnet params

0.2
This commit is contained in:
zzz
2020-05-10 17:22:06 -04:00
parent 561a9c34da
commit 9f24daf2df
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
i2psnark-launcher
ALPHA version 0.1 2020-05-10
ALPHA version 0.2 2020-05-10
==============================
This is a simple file and URL handler script that stuffs the magnet URL

View File

@ -2,7 +2,7 @@
#
# handler for i2psnark torrent files and magnet links
#
# version 0.1
# version 0.2
#
# zzz 2020-05-10
#
@ -76,4 +76,6 @@ then
exit 1
fi
# escape magnet params
ARG=`echo "$ARG" | sed -e 's/?/%3F/g' | sed -e 's/&/%26/g'`
"$BROWSER" "${I2PURL}i2psnark/?nofilter_newURL=$ARG#add"