diff options
author | Nicolas BERNSTEIN <alexis211@gmail.com> | 2012-04-13 19:38:41 +0200 |
---|---|---|
committer | Nicolas BERNSTEIN <alexis211@gmail.com> | 2012-04-13 19:38:41 +0200 |
commit | 0c29df39fabecdd80edef41f26ffdcb11c4e0e79 (patch) | |
tree | fe62b885f36eb0e390a0f09a063e18bc4333d585 /tpl/blog/atom_feed.php | |
parent | ddb6cadf66c7f6c26430a14658d232a88bcceb7a (diff) | |
download | Bits-0c29df39fabecdd80edef41f26ffdcb11c4e0e79.tar.gz Bits-0c29df39fabecdd80edef41f26ffdcb11c4e0e79.zip |
Minor minor changes. Very minor.
Diffstat (limited to 'tpl/blog/atom_feed.php')
-rw-r--r-- | tpl/blog/atom_feed.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tpl/blog/atom_feed.php b/tpl/blog/atom_feed.php index 20dc0ea..a4344ed 100644 --- a/tpl/blog/atom_feed.php +++ b/tpl/blog/atom_feed.php @@ -1,11 +1,12 @@ <?php +header("HTTP/1.1 200 OK"); header("Content-Type: application/xml"); echo '<?xml version="1.0" encoding="utf-8"?>'."\n"; echo '<feed xmlns="http://www.w3.org/2005/Atom">'."\n"; -echo '<title>' . $blog_title . '</title>'."\n"; +echo '<title>' . htmlspecialchars($blog_title) . '</title>'."\n"; echo '<id>' . $blog_base_url . "blog". "</id>\n"; -echo '<link href="' . $blog_base_url . "blog". '" rel="self" />' . "\n"; +echo '<link href="' . $blog_base_url . "index.php?p=" . $url . '" rel="self" />' . "\n"; function beginning($text, $len = 500) { @@ -18,7 +19,7 @@ function beginning($text, $len = 500) { foreach ($posts as $post) { echo "\n<entry>\n"; - echo '<title>' . $post['title'] . "</title>\n"; + echo '<title>' . htmlspecialchars($post['title']) . "</title>\n"; echo '<published>' . @date("c", $post['date_ts']) . "</published>\n"; echo '<id>' . $blog_base_url . "view-blog-" . $post['id'] . "</id>\n"; foreach (explode(', ', $post['tags']) as $tag) { |