diff options
author | Pascal Chevrel <pascal@chevrel.org> | 2012-05-05 20:18:45 +0200 |
---|---|---|
committer | Pascal Chevrel <pascal@chevrel.org> | 2012-05-05 20:18:45 +0200 |
commit | 107fd72f0e3bdf3eaed33c5239c40d9aeb34b31b (patch) | |
tree | 288cd8afa2cda29fbbe081840df01643b28bbef1 | |
parent | a34d1438e2d21abb13e41a731aff3edf5078d13d (diff) | |
download | planet-107fd72f0e3bdf3eaed33c5239c40d9aeb34b31b.tar planet-107fd72f0e3bdf3eaed33c5239c40d9aeb34b31b.tar.gz planet-107fd72f0e3bdf3eaed33c5239c40d9aeb34b31b.tar.bz2 planet-107fd72f0e3bdf3eaed33c5239c40d9aeb34b31b.tar.xz planet-107fd72f0e3bdf3eaed33c5239c40d9aeb34b31b.zip |
Don't send an empty <subtitle> element in the feed, just reuse the same data as in <title>, use htmlspecialchars instead of htmlentities
-rw-r--r-- | custom/views/atom10/index.tpl.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/views/atom10/index.tpl.php b/custom/views/atom10/index.tpl.php index 23f3163..9249d22 100644 --- a/custom/views/atom10/index.tpl.php +++ b/custom/views/atom10/index.tpl.php @@ -5,8 +5,8 @@ $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 htmlentities($PlanetConfig->getName()); ?></title> - <subtitle></subtitle> + <title><?php echo htmlspecialchars($PlanetConfig->getName()); ?></title> + <subtitle><?php echo htmlspecialchars($PlanetConfig->getName()); ?></subtitle> <id><?php echo $PlanetConfig->getUrl(); ?></id> <link rel="self" type="text/html" href="<?php echo $PlanetConfig->getUrl(); ?>?type=atom10" /> <link rel="alternate" type="text/html" href="<?php echo $PlanetConfig->getUrl(); ?>" /> |