From 5e0c5146601fad2c6e499fc65531c52c6271e839 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 7 Feb 2020 03:04:34 +0100 Subject: URL sanitation fixes --- backup-tc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup-tc.sh b/backup-tc.sh index 79f235c..d1b76da 100755 --- a/backup-tc.sh +++ b/backup-tc.sh @@ -2,7 +2,7 @@ URL=$1 [[ $URL =~ (/?(index\.html)?(\#.*)?$) ]] && \ - URL=${URL//$BASH_REMATCH/} + echo $BASH_REMATCH && URL=${URL/%$BASH_REMATCH/} OUTPUT_DIR="$2" if [ -z "$OUTPUT_DIR" ] -- cgit v1.2.3