summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2018-07-17 09:17:04 +0100
committerKatolaZ <katolaz@freaknet.org>2018-07-17 09:17:04 +0100
commit1c2336891610d7ff1077e4621e35285750d90e19 (patch)
tree76feb9e4a9e0a0c36600714f0b30a47d4ac880aa
parentac38bc1facc5994417787908242dc0fa204d5851 (diff)
selector sanitisation0.1
-rwxr-xr-xgosher2
1 files changed, 1 insertions, 1 deletions
diff --git a/gosher b/gosher
index 840b2b2..42fd49a 100755
--- a/gosher
+++ b/gosher
@@ -113,7 +113,7 @@ GOPHERDIR=${1:-"./"}
read selector
-selector=$(echo $selector | sed -r 's:\r::g' )
+selector=$(echo $selector | sed -r 's:\$.*::g;s:\r::g' )
[ -n "$DEBUG" ] && {
echo "iGOPHERDIR: ${GOPHERDIR}"