From 1130da4c5a9d3524c8770b674d4e5ca1c314964e Mon Sep 17 00:00:00 2001
From: "mike.morgan%oregonstate.edu"
Date: Fri, 7 Apr 2006 15:01:04 +0000
Subject: [PATCH] Updates to address problems in bug 333124 and bug 333133.
git-svn-id: svn://10.0.0.236/trunk@193811 18797224-902f-48f8-a5cc-f745e15eee43
---
mozilla/webtools/addons/public/tpl/addcomment.tpl | 2 +-
mozilla/webtools/addons/public/tpl/addon.tpl | 10 +++++-----
mozilla/webtools/addons/public/tpl/comments.tpl | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/mozilla/webtools/addons/public/tpl/addcomment.tpl b/mozilla/webtools/addons/public/tpl/addcomment.tpl
index 753a3504d74..029d7c50736 100644
--- a/mozilla/webtools/addons/public/tpl/addcomment.tpl
+++ b/mozilla/webtools/addons/public/tpl/addcomment.tpl
@@ -11,7 +11,7 @@ released on {$addon->VersionDateAdded|date_format}
{if $c_added_comment}
-You comment has been added successfully.
+Your comment has been added successfully.
diff --git a/mozilla/webtools/addons/public/tpl/addon.tpl b/mozilla/webtools/addons/public/tpl/addon.tpl
index 0fb212676ba..eca676b3af4 100644
--- a/mozilla/webtools/addons/public/tpl/addon.tpl
+++ b/mozilla/webtools/addons/public/tpl/addon.tpl
@@ -90,7 +90,7 @@ Works with:
{if $addon->devcomments}
Developer Comments
-{$addon->devcomments|nl2br}
+{$addon->devcomments|nl2br|strip_tags}
{/if}
@@ -101,9 +101,9 @@ Works with:
{section name=comments loop=$addon->Comments max=10}
{$addon->Comments[comments].CommentVote} out of 5
-{$addon->Comments[comments].CommentTitle}
-by {$addon->Comments[comments].CommentName}, {$addon->Comments[comments].CommentDate|date_format}
-{$addon->Comments[comments].CommentNote}
+{$addon->Comments[comments].CommentTitle|strip_tags}
+by {$addon->Comments[comments].CommentName|strip_tags}, {$addon->Comments[comments].CommentDate|date_format}
+{$addon->Comments[comments].CommentNote|strip_tags}
{$addon->Comments[comments].helpful_yes} out of {$addon->Comments[comments].helpful_total} viewers found this comment helpful
Was this comment helpful? Yes | No
@@ -124,7 +124,7 @@ Was this comment helpful? ID}/history/">all previous releases of this addon.
-{if $addon->UserWebsite}
+{if $addon->Homepage}
View the Author's homepage for this addon.
{/if}
diff --git a/mozilla/webtools/addons/public/tpl/comments.tpl b/mozilla/webtools/addons/public/tpl/comments.tpl
index 3a53bee088f..c6e89b040f3 100644
--- a/mozilla/webtools/addons/public/tpl/comments.tpl
+++ b/mozilla/webtools/addons/public/tpl/comments.tpl
@@ -54,9 +54,9 @@ Next Page »
{section name=comments loop=$addon->Comments}
{$addon->Comments[comments].CommentVote}out of 5
-{$addon->Comments[comments].CommentTitle}
-by {$addon->Comments[comments].CommentName}, {$addon->Comments[comments].CommentDate|date_format}
-{$addon->Comments[comments].CommentNote}
+{$addon->Comments[comments].CommentTitle|strip_tags}
+by {$addon->Comments[comments].CommentName|strip_tags}, {$addon->Comments[comments].CommentDate|date_format}
+{$addon->Comments[comments].CommentNote|strip_tags}
{$addon->Comments[comments].helpful_yes} out of {$addon->Comments[comments].helpful_total} viewers found this comment helpful
Was this comment helpful? Yes | No