mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Ignore port when checking referrer
This commit is contained in:
parent
5cfc5b4481
commit
b87835bd18
|
@ -164,6 +164,7 @@ class ImageServer(
|
||||||
return allowedDomains.any {
|
return allowedDomains.any {
|
||||||
referer.substringAfter("//") // Ignore scheme
|
referer.substringAfter("//") // Ignore scheme
|
||||||
.substringBefore("/") // Ignore path
|
.substringBefore("/") // Ignore path
|
||||||
|
.substringBefore(":")
|
||||||
.endsWith(it)
|
.endsWith(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue