summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:35:26 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:35:26 +0000
commit72f1b573b89966bd4ad76edc847399d2f33c5652 (patch)
tree43e1e56a923ab275197574b1e4e97b0a0245311f /pdf-over-gui/src/main/java/at/asit
parentf10a5745d21d4ae5cab27e644a3db39d001dd3c4 (diff)
downloadpdf-over-72f1b573b89966bd4ad76edc847399d2f33c5652.tar.gz
pdf-over-72f1b573b89966bd4ad76edc847399d2f33c5652.tar.bz2
pdf-over-72f1b573b89966bd4ad76edc847399d2f33c5652.zip
Blank out passwords in mobile bku post data debug output
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@399 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUHandler.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUHandler.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUHandler.java
index c868a223..f7599117 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUHandler.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUHandler.java
@@ -219,6 +219,10 @@ public abstract class MobileBKUHandler {
ByteArrayOutputStream os = new ByteArrayOutputStream();
post.getRequestEntity().writeRequest(os);
req = os.toString();
+ if (req.contains("passwort=")) //$NON-NLS-1$
+ req = req.replaceAll("passwort=[^&]*", "passwort=******"); //$NON-NLS-1$ //$NON-NLS-2$
+ if (req.contains(":pwd=")) //$NON-NLS-1$
+ req = req.replaceAll(":pwd=[^&]*", ":pwd=******"); //$NON-NLS-1$ //$NON-NLS-2$
os.close();
} else {
req = post.getRequestEntity().getContentLength() + " bytes"; //$NON-NLS-1$