summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Pages
diff options
context:
space:
mode:
authorxue <>2006-08-26 15:45:08 +0000
committerxue <>2006-08-26 15:45:08 +0000
commit79e00e70a50b89b627f5457d176084fbb192c5bd (patch)
treebad3c0f6de6c83c18a02723c90546535a9ad793c /demos/blog/protected/Pages
parent5a47e8d5c472bfbe07abb464cdcc5bbc721f8d59 (diff)
encoding post titles.
Diffstat (limited to 'demos/blog/protected/Pages')
-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