diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2016-06-30 14:48:57 +0200 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2016-06-30 14:48:57 +0200 |
commit | 0be051e4c7a5d55c48d6cdf5b21ffb939b6bc06a (patch) | |
tree | 2c1b90c6eb63e97c9924019609af8ee63b96f973 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java | |
parent | 4bbf0adc1281e431c1e77481803c5b53de4795df (diff) | |
download | pdf-over-0be051e4c7a5d55c48d6cdf5b21ffb939b6bc06a.tar.gz pdf-over-0be051e4c7a5d55c48d6cdf5b21ffb939b6bc06a.tar.bz2 pdf-over-0be051e4c7a5d55c48d6cdf5b21ffb939b6bc06a.zip |
Ensure fully qualified URLs during mobile BKU processing
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java index da6505d3..5f363d3d 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java @@ -17,6 +17,7 @@ package at.asit.pdfover.gui.bku.mobile; import java.io.ByteArrayOutputStream; import java.io.IOException; +import java.net.URL; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -249,6 +250,7 @@ public abstract class MobileBKUHandler { } if (redirectLocation != null) { + redirectLocation = MobileBKUHelper.getQualifiedURL(redirectLocation, new URL(post.getURI().toString())); redirectLocation = getStatus().ensureSessionID(redirectLocation); log.debug("Redirected to " + redirectLocation); //$NON-NLS-1$ get = new GetMethod(redirectLocation); @@ -332,6 +334,7 @@ public abstract class MobileBKUHandler { } if (redirectLocation != null) { + redirectLocation = MobileBKUHelper.getQualifiedURL(redirectLocation, new URL(get.getURI().toString())); redirectLocation = getStatus().ensureSessionID(redirectLocation); log.debug("Redirected to " + redirectLocation); //$NON-NLS-1$ get2 = new GetMethod(redirectLocation); |