Mercurial Hosting > luan
diff src/luan/tools/WebShell.java @ 50:272b6f1d7dac
fix java accessibility
git-svn-id: https://luan-java.googlecode.com/svn/trunk@51 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 28 Dec 2012 19:48:43 +0000 |
parents | 8ede219cd111 |
children | 28dfd91a816c |
line wrap: on
line diff
--- a/src/luan/tools/WebShell.java Fri Dec 28 19:35:04 2012 +0000 +++ b/src/luan/tools/WebShell.java Fri Dec 28 19:48:43 2012 +0000 @@ -48,10 +48,10 @@ PrintWriter out = response.getWriter(); HttpSession session = request.getSession(); - ByteArrayOutputStream history = (ByteArrayOutputStream)session.getValue("history"); + ByteArrayOutputStream history = (ByteArrayOutputStream)session.getValue("luan_history"); if( history==null ) { history = new ByteArrayOutputStream(); - session.putValue("history",history); + session.putValue("luan_history",history); } if( request.getParameter("clear") != null ) { @@ -82,6 +82,7 @@ } catch(LuanException e) { logger.info("",e); writer.write( HtmlLib.encode(e.toString()) ); + writer.write("\r\n"); } writer.flush(); }