diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-01-28 15:42:24 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-01-28 15:42:29 +0100 |
commit | 888aad477c7b92104d6df651dffb9d51f57cfdb4 (patch) | |
tree | b3ad4cb3e2e69de63505edd15dc4dc88da7cefc4 /web/html | |
parent | 389d3a552e36e52b97281f0c083631c15cf8690e (diff) | |
download | aur-888aad477c7b92104d6df651dffb9d51f57cfdb4.tar.gz aur-888aad477c7b92104d6df651dffb9d51f57cfdb4.tar.xz |
Use UTF-8 in RSS feeds (fixes FS#10706).
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/rss.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/web/html/rss.php b/web/html/rss.php index 1cf8753b..c9b87eca 100644 --- a/web/html/rss.php +++ b/web/html/rss.php @@ -8,9 +8,13 @@ include_once("feedcreator.class.php"); $protocol = $_SERVER["HTTPS"]=='on' ? "https" : "http"; $host = $_SERVER['HTTP_HOST']; +$rss = new RSSCreator20(); + +# Use UTF-8 (fixes FS#10706). +$rss->encoding = "UTF-8"; + #If there's a cached version <1hr old, won't regenerate now -$rss = new UniversalFeedCreator(); -$rss->useCached("RSS2.0", "/tmp/aur-newestpkg.xml", 1800); +$rss->useCached("/tmp/aur-newestpkg.xml", 1800); #All the general RSS setup $rss->title = "AUR Newest Packages"; @@ -44,5 +48,5 @@ while ($row = mysql_fetch_assoc($result)) { } #save it so that useCached() can find it -$rss->saveFeed("RSS2.0","/tmp/aur-newestpkg.xml",true); +$rss->saveFeed("/tmp/aur-newestpkg.xml",true); |