diff options
author | Maurice Svay <maurice@svay.com> | 2012-03-23 23:36:52 +0100 |
---|---|---|
committer | Maurice Svay <maurice@svay.com> | 2012-03-23 23:36:52 +0100 |
commit | be693f391d1a177cd050a618117c0e7e4dd99a43 (patch) | |
tree | c80220f2ee06361b0d786612f426cac81b5f0905 /custom | |
parent | cfb331a0256c0e2d9de993cd14f1bde3b6293d05 (diff) | |
download | planet-be693f391d1a177cd050a618117c0e7e4dd99a43.tar planet-be693f391d1a177cd050a618117c0e7e4dd99a43.tar.gz planet-be693f391d1a177cd050a618117c0e7e4dd99a43.tar.bz2 planet-be693f391d1a177cd050a618117c0e7e4dd99a43.tar.xz planet-be693f391d1a177cd050a618117c0e7e4dd99a43.zip |
Escape site name in RSS and Atom
Fixes #31
Diffstat (limited to 'custom')
-rw-r--r-- | custom/views/atom10/index.tpl.php | 2 | ||||
-rw-r--r-- | custom/views/rss10/index.tpl.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/custom/views/atom10/index.tpl.php b/custom/views/atom10/index.tpl.php index 6e03980..74fda9f 100644 --- a/custom/views/atom10/index.tpl.php +++ b/custom/views/atom10/index.tpl.php @@ -5,7 +5,7 @@ $count = 0; header('Content-Type: application/atom+xml; charset=UTF-8'); echo '<?xml version="1.0" encoding="UTF-8" ?>'; ?><feed xmlns="http://www.w3.org/2005/Atom"> - <title><?php echo $PlanetConfig->getName(); ?></title> + <title><?php echo htmlentities($PlanetConfig->getName()); ?></title> <subtitle></subtitle> <id><?php echo $PlanetConfig->getUrl(); ?></id> <link rel="self" type="text/html" href="<?php echo $PlanetConfig->getUrl(); ?>?type=atom10" /> diff --git a/custom/views/rss10/index.tpl.php b/custom/views/rss10/index.tpl.php index 0141327..c74b65d 100644 --- a/custom/views/rss10/index.tpl.php +++ b/custom/views/rss10/index.tpl.php @@ -14,7 +14,7 @@ echo '<?xml version="1.0" encoding="UTF-8" ?>'; xmlns="http://purl.org/rss/1.0/"> <channel rdf:about="<?php echo $PlanetConfig->getUrl(); ?>"> - <title><?php echo $PlanetConfig->getName(); ?></title> + <title><?php echo htmlentities($PlanetConfig->getName()); ?></title> <description></description> <link><?php echo $PlanetConfig->getUrl(); ?></link> <dc:language></dc:language> |