提交 b2c21f8c authored 作者: Thomas Mueller's avatar Thomas Mueller

H2 Console: Editing the result of a multi-line queries failed. Issue 183.

上级 25d637f2
...@@ -1572,7 +1572,7 @@ public class WebApp { ...@@ -1572,7 +1572,7 @@ public class WebApp {
buff.append("<br /><br /><form name=\"editResult\" method=\"post\" action=\"query.do?jsessionid=${sessionId}\" target=\"h2result\">" + buff.append("<br /><br /><form name=\"editResult\" method=\"post\" action=\"query.do?jsessionid=${sessionId}\" target=\"h2result\">" +
"<input type=\"submit\" class=\"button\" value=\"${text.resultEdit.editResult}\" />" + "<input type=\"submit\" class=\"button\" value=\"${text.resultEdit.editResult}\" />" +
"<input type=\"hidden\" name=\"sql\" value=\"@EDIT "). "<input type=\"hidden\" name=\"sql\" value=\"@EDIT ").
append(PageParser.escapeHtml(sql)). append(PageParser.escapeHtmlData(sql)).
append("\" /></form>"); append("\" /></form>");
} }
return buff.toString(); return buff.toString();
......
...@@ -478,8 +478,8 @@ public class WebServer implements Service { ...@@ -478,8 +478,8 @@ public class WebServer implements Service {
String fileName = getPropertiesFileName(); String fileName = getPropertiesFileName();
try { try {
return SortedProperties.loadProperties(fileName); return SortedProperties.loadProperties(fileName);
} catch (IOException e) { } catch (Exception e) {
// TODO log exception TraceSystem.traceThrowable(e);
return new Properties(); return new Properties();
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论