diff options
author | Thomas <> | 2023-04-11 17:51:24 +0200 |
---|---|---|
committer | Thomas <> | 2023-04-11 17:51:24 +0200 |
commit | 7bc0b978c0e0047f6569040cabae330f8919f0ee (patch) | |
tree | 3a19130131ad332127f5e596e136b27c4a7d650f /pdf-as-pdfbox-2/licenses | |
parent | 794640bdb5c144db97faa9cadf1051ff837b7112 (diff) | |
download | pdf-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-pdfbox-2/licenses')
0 files changed, 0 insertions, 0 deletions