Selaa lähdekoodia

Fix server validation

master
JustAnotherArchivist 3 vuotta sitten
vanhempi
commit
a9a4792854
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      gofile.io-dl

+ 1
- 1
gofile.io-dl Näytä tiedosto

@@ -17,7 +17,7 @@ else
fi

server="$(curl -s "https://apiv2.gofile.io/getServer?c=${code}" | python3 -c 'import json,sys; print(json.loads(sys.stdin.read().strip())["data"]["server"])')"
if [[ "${server}" != srv-file?? ]]
if [[ ! "${server}" =~ ^srv-file[0-9]+$ ]]
then
echo "Unexpected server value: ${server}" >&2
exit 1


Ladataan…
Peruuta
Tallenna