From f15769e60b062e8dbf5da24df8f0ab0fc9375632 Mon Sep 17 00:00:00 2001 From: wbauer Date: Wed, 15 Oct 2008 10:32:11 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@117 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'BKUOnline/src/main/java/at/gv') 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); -- cgit v1.2.3