Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marcus Andersson
aurweb
Commits
888aad47
Commit
888aad47
authored
Jan 28, 2011
by
Lukas Fleischer
Browse files
Use UTF-8 in RSS feeds (fixes FS#10706).
Signed-off-by:
Lukas Fleischer
<
archlinux@cryptocrack.de
>
parent
389d3a55
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/html/rss.php
View file @
888aad47
...
...
@@ -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
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment