screenshot-public: strip out slashes

master
Yorick van Pelt 2023-02-18 22:42:58 +01:00
parent 4e3a8a9625
commit 299e8aa05c
Signed by: yorick
GPG Key ID: A36E70F9DC014A15
1 changed files with 1 additions and 1 deletions

View File

@ -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"