1
0
Fork 1
mirror of https://gitlab.com/mangadex-pub/mangadex_at_home.git synced 2024-01-19 02:48:37 +00:00

fixed referer-check

This commit is contained in:
wedge1001 2020-07-02 21:40:49 +02:00
parent 75749ea685
commit 62f0d4fa2e

View file

@ -106,7 +106,7 @@ class ImageServer(private val cache: DiskLruCache, private val statistics: Atomi
}
handled.set(true)
if (request.header("Referer")?.startsWith("https://mangadex.org") == true) {
if (request.header("Referer")?.startsWith("https://mangadex.org") == false) {
snapshot?.close()
Response(Status.FORBIDDEN)
} else if (snapshot != null && imageDatum != null) {