From 9f24daf2df15580997c64a3b67af2bdc07733ac1 Mon Sep 17 00:00:00 2001 From: zzz Date: Sun, 10 May 2020 17:22:06 -0400 Subject: [PATCH] Escape magnet params 0.2 --- README.txt | 2 +- i2psnark | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.txt b/README.txt index eca1d97..310a40f 100644 --- a/README.txt +++ b/README.txt @@ -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 diff --git a/i2psnark b/i2psnark index 0bae9d0..4e61b9a 100755 --- a/i2psnark +++ b/i2psnark @@ -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"