aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main
diff options
context:
space:
mode:
authorkstranacher <kstranacher@d688527b-c9ab-4aba-bd8d-4036d912da1d>2009-08-26 11:00:54 +0000
committerkstranacher <kstranacher@d688527b-c9ab-4aba-bd8d-4036d912da1d>2009-08-26 11:00:54 +0000
commit27be7994027944015c290e41e688e8723965bd48 (patch)
treed99a44150ec6879189a8d49f4c3ee017926b8cd0 /id/server/idserverlib/src/main
parentf03ca67c6a2852f391f543a7fd0b0f80b98c53f5 (diff)
downloadmoa-id-spss-27be7994027944015c290e41e688e8723965bd48.tar.gz
moa-id-spss-27be7994027944015c290e41e688e8723965bd48.tar.bz2
moa-id-spss-27be7994027944015c290e41e688e8723965bd48.zip
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1139 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id/server/idserverlib/src/main')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/AuthServlet.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/AuthServlet.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/AuthServlet.java
index ddd1df628..0656d37d3 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/AuthServlet.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/AuthServlet.java
@@ -161,10 +161,26 @@ public class AuthServlet extends HttpServlet implements MOAIDAuthConstants {
if (item.isFormField())
{
// Process only form fields - no file upload items
+ String logString = item.getString("UTF-8");
+
+ // TODO use RegExp
+ String startS = "<pr:Identification><pr:Value>";
+ String endS = "</pr:Value><pr:Type>urn:publicid:gv.at:baseid</pr:Type>";
+ String logWithMaskedBaseid = logString;
+ int start = logString.indexOf(startS);
+ if (start > -1) {
+ int end = logString.indexOf(endS);
+ if (end > -1) {
+ logWithMaskedBaseid = logString.substring(0, start);
+ logWithMaskedBaseid += startS;
+ logWithMaskedBaseid += "xxxxxxxxxxxxxxxxxxxxxxxx";
+ logWithMaskedBaseid += logString.substring(end, logString.length());
+ }
+ }
parameters.put(item.getFieldName(), item.getString("UTF-8"));
Logger.debug("Processed multipart/form-data request parameter: \nName: " +
item.getFieldName() + "\nValue: " +
- item.getString("UTF-8"));
+ logWithMaskedBaseid);
}
}
}