summaryrefslogtreecommitdiff
path: root/BKUOnline/src/main/java/at
diff options
context:
space:
mode:
authorwbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-10-15 10:32:11 +0000
committerwbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-10-15 10:32:11 +0000
commitf15769e60b062e8dbf5da24df8f0ab0fc9375632 (patch)
tree194b1bda2fdc30176c98d9ba9c5b776b1782c9b5 /BKUOnline/src/main/java/at
parent32876f1d7e402fbf8ce8b0b113f214a6e8ac8d48 (diff)
downloadmocca-f15769e60b062e8dbf5da24df8f0ab0fc9375632.tar.gz
mocca-f15769e60b062e8dbf5da24df8f0ab0fc9375632.tar.bz2
mocca-f15769e60b062e8dbf5da24df8f0ab0fc9375632.zip
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@117 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUOnline/src/main/java/at')
-rw-r--r--BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java
index c9af43d0..210dce5a 100644
--- a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java
+++ b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java
@@ -90,8 +90,10 @@ public class HashDataInputServlet extends SpringBKUServlet {
if (isMSIE(req)) {
String fileExt = hd.getMimeType().equalsIgnoreCase("text/plain") ? ".txt"
: ".xhtml";
- resp.addHeader("content-disposition", "attachment; filename=" + param
- + fileExt);
+ if (fileExt.equals(".xhtml")) {
+ resp.addHeader("content-disposition", "attachment; filename="
+ + param + fileExt);
+ }
}
Reader r = new InputStreamReader(hd.getHashDataInput(), charSet);
Writer w = new OutputStreamWriter(resp.getOutputStream(), charSet);