From: zapata Date: Thu, 12 Sep 2002 04:50:48 +0000 (+0000) Subject: fixed the bug that caused problems when an article's title contained "'s X-Git-Tag: BEFORE_MERGE_1_1~548 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=eb571fd2a55ba0f45bf42467a0633b057c368300;p=mir.git fixed the bug that caused problems when an article's title contained "'s --- diff --git a/templates-dist/admin/comment.template b/templates-dist/admin/comment.template index c602a6b0..079759d8 100755 --- a/templates-dist/admin/comment.template +++ b/templates-dist/admin/comment.template @@ -10,12 +10,12 @@ ${lang("comment.htmltitle")}
- - - - - - + + + + + + @@ -25,49 +25,49 @@ ${lang("comment.htmltitle")} ${lang("comment.date")}: - ${data.date} + ${utility.encodeHTML(utility.encodeHTML(data.date))} ${lang("comment.title")}: - + ${lang("comment.creator")}: - + ${lang("comment.url")}: - + ${lang("comment.email")}: - + ${lang("comment.phone")}: - + ${lang("comment.address")}: - + ${lang("comment.text")}: - + diff --git a/templates-dist/admin/content.template b/templates-dist/admin/content.template index 160e82c8..f5cb3966 100755 --- a/templates-dist/admin/content.template +++ b/templates-dist/admin/content.template @@ -14,10 +14,10 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} - - - - + + + + @@ -32,7 +32,7 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} ${lang("content.owner")}: - ${data.login_user.login} + ${utility.encodeHTML(data.login_user.login)}   @@ -43,7 +43,7 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} ${lang("content.import_date")}: - ${data.date} + ${utility.encodeHTML(data.date)}   @@ -55,7 +55,7 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} ${lang("content.lastchange_date")}: - ${data.webdb_lastchange} + ${utility.encodeHTML(data.webdb_lastchange)}
@@ -68,7 +68,7 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} ${lang("content.create_date")}: - ${data.webdb_create}

${lang("edit")} (yyyy-mm-dd [HH:mm]): + ${utility.encodeHTML(data.webdb_create)}

${lang("edit")} (yyyy-mm-dd [HH:mm]):
@@ -130,9 +130,9 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} -
- - +
+ + @@ -144,7 +144,7 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} - + @@ -155,7 +155,7 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} -
+
@@ -167,8 +167,8 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} - - + + @@ -179,8 +179,8 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} - - + + @@ -190,7 +190,7 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} - + @@ -205,9 +205,9 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} - + - + ${lang("content.comment")}:
${lang("content.internal")}
- +