From 299e8aa05cc60159df2efcc76b4c181d6ddc62a0 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Sat, 18 Feb 2023 22:42:58 +0100 Subject: [PATCH] screenshot-public: strip out slashes --- bin/screenshot_public.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/screenshot_public.sh b/bin/screenshot_public.sh index aff13f2..fa6a2ca 100755 --- a/bin/screenshot_public.sh +++ b/bin/screenshot_public.sh @@ -2,7 +2,7 @@ set -e # Setup filename for the screenshot -myfile="$(openssl rand -base64 9)_$(date +%y%m%d%H%M%S).webp" +myfile="$(openssl rand -base64 9 | tr / -)_$(date +%y%m%d%H%M%S).webp" webpath="https://pub.yori.cc/s/" fileurl="$webpath$myfile"