aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web-client/src
diff options
context:
space:
mode:
authorThomas <>2023-04-11 17:51:24 +0200
committerThomas <>2023-04-11 17:51:24 +0200
commit7bc0b978c0e0047f6569040cabae330f8919f0ee (patch)
tree3a19130131ad332127f5e596e136b27c4a7d650f /pdf-as-web-client/src
parent794640bdb5c144db97faa9cadf1051ff837b7112 (diff)
downloadpdf-as-4-7bc0b978c0e0047f6569040cabae330f8919f0ee.tar.gz
pdf-as-4-7bc0b978c0e0047f6569040cabae330f8919f0ee.tar.bz2
pdf-as-4-7bc0b978c0e0047f6569040cabae330f8919f0ee.zip
chore(pdf-as-web): Handle error url not containing an explicit port
from TUG: The servlet tries to sanitize the URL by parsing it and writing it back out. In case the input URL doesn't contain an explicit port, URL.getPort() returns -1 which leads to "https://example.com:-1/mypath" in the template which isn't the same origin as without a port and gets rejected by the browser. Instead only add a port to the resulting URL if the input contains one as well.
Diffstat (limited to 'pdf-as-web-client/src')
0 files changed, 0 insertions, 0 deletions