From ce6989b7c205ecb86e11947551ccdda767fb34fe Mon Sep 17 00:00:00 2001 From: zapata Date: Sat, 21 Oct 2006 23:42:03 +0000 Subject: [PATCH] small fixes --- etc/open/error.template | 2 +- etc/open/usererror.template | 2 +- source/mir/config/MirPropertiesConfiguration.java | 2 +- templates/admin/error.template | 2 +- templates/admin/usererror.template | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/etc/open/error.template b/etc/open/error.template index 78b90f7b..7c9e9a43 100755 --- a/etc/open/error.template +++ b/etc/open/error.template @@ -20,7 +20,7 @@

-

${data.errorstring} +

${utility.encodeHTML(data.errorstring)}

diff --git a/etc/open/usererror.template b/etc/open/usererror.template index 4409c367..049c430b 100755 --- a/etc/open/usererror.template +++ b/etc/open/usererror.template @@ -19,7 +19,7 @@

-

${data.errorstring} +

${utility.encodeHTML(data.errorstring)}

diff --git a/source/mir/config/MirPropertiesConfiguration.java b/source/mir/config/MirPropertiesConfiguration.java index 125dff05..71d41324 100755 --- a/source/mir/config/MirPropertiesConfiguration.java +++ b/source/mir/config/MirPropertiesConfiguration.java @@ -204,7 +204,7 @@ public class MirPropertiesConfiguration extends ExtendedProperties { */ public Object getProperty(String key) { if (super.getProperty(key) == null) { - return new String(); + return ""; } return super.getProperty(key); diff --git a/templates/admin/error.template b/templates/admin/error.template index 402dbb88..a79d0e0f 100755 --- a/templates/admin/error.template +++ b/templates/admin/error.template @@ -10,7 +10,7 @@

${lang("error.title")}

${lang("error.text", config["Mir.Tech-email.address"], config["Mir.Tech-email.name"])}

-


${date.format(config["Mir.DefaultDateTimeFormat"])} -- ${errorstring}

+


${date.format(config["Mir.DefaultDateTimeFormat"])} -- ${utility.encodeHTML(errorstring)}


${utility.prettyEncodeHTML(stacktrace)}

${lang("error.text2", config["Mir.Tech-email.address"], config["Mir.Tech-email.name"])}

diff --git a/templates/admin/usererror.template b/templates/admin/usererror.template index 3b7bc0ce..598ff7ea 100755 --- a/templates/admin/usererror.template +++ b/templates/admin/usererror.template @@ -9,7 +9,7 @@

${lang("usererror.title")}

-


${date.format(config["Mir.DefaultDateTimeFormat"])} -- ${errorstring}

+


${date.format(config["Mir.DefaultDateTimeFormat"])} -- ${utility.encodeHTML(errorstring)}

${lang("usererror.what_to_do")}

-- 2.11.0