diff options
author | xue <> | 2006-08-27 23:26:55 +0000 |
---|---|---|
committer | xue <> | 2006-08-27 23:26:55 +0000 |
commit | c1937cccd0985e86e247287faa9ac60870feecd7 (patch) | |
tree | 95ec7083c7be815184c74cd8aa27d02a69d2ea77 /demos/blog/protected | |
parent | 887da1b3668499821f046665b461aeadb0a9fb2e (diff) |
Merge from 3.0 branch till 1350.
Diffstat (limited to 'demos/blog/protected')
-rw-r--r-- | demos/blog/protected/Pages/Posts/ListPost.page | 2 | ||||
-rw-r--r-- | demos/blog/protected/Pages/Posts/ViewPost.page | 2 |
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
|