summaryrefslogtreecommitdiff
path: root/demos/blog
diff options
context:
space:
mode:
Diffstat (limited to 'demos/blog')
-rw-r--r--demos/blog/protected/Pages/Posts/ListPost.page2
-rw-r--r--demos/blog/protected/Pages/Posts/ViewPost.page2
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/blog/protected/Pages/Posts/ListPost.page b/demos/blog/protected/Pages/Posts/ListPost.page
index 1371a5ab..c3f1ba25 100644
--- a/demos/blog/protected/Pages/Posts/ListPost.page
+++ b/demos/blog/protected/Pages/Posts/ListPost.page
@@ -25,7 +25,7 @@
<prop:ItemTemplate>
<div class="post">
<div class="post-title">
-<%# $this->DataItem->Title %>
+<%# htmlentities($this->DataItem->Title,ENT_QUOTES,'UTF-8') %>
</div>
<div class="post-time">
<%# date('l, F j, Y \a\t h:i:s a',$this->DataItem->CreateTime) %>
diff --git a/demos/blog/protected/Pages/Posts/ViewPost.page b/demos/blog/protected/Pages/Posts/ViewPost.page
index c48b8537..7d9c208d 100644
--- a/demos/blog/protected/Pages/Posts/ViewPost.page
+++ b/demos/blog/protected/Pages/Posts/ViewPost.page
@@ -2,7 +2,7 @@
<div class="post">
<div class="post-title">
-<%= $this->CurrentPost->Title %>
+<%= htmlentities($this->CurrentPost->Title,ENT_QUOTES,'UTF-8') %>
</div>
<div class="post-time">
<com:TLabel