[Apt-listbugs-commits] [apt-listbugs] 03/03: do not double encode strings in RSS output
Francesco Poli
frx-guest at moszumanska.debian.org
Sun Mar 22 15:36:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
frx-guest pushed a commit to branch master
in repository apt-listbugs.
commit 9c4c3c35f3356f8fd5a6ccc980b489e5b3dbaae7
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date: Sun Mar 22 16:31:39 2015 +0100
do not double encode strings in RSS output
---
debian/changelog | 1 +
lib/aptlistbugs/logic.rb | 7 +------
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 5897efb..a440453 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,7 @@ apt-listbugs (0.1.17) UNRELEASED; urgency=medium
* fixed the man page: updated the example output consistently with
the presence of the "b<id>" identifiers
* improved HTML bug lists (strings are now encoded to be valid XML)
+ * fixed RSS output (suppressed double encoding of strings)
-- Francesco Poli (wintermute) <invernomuto at paranoici.org> Sun, 04 Jan 2015 11:42:30 +0100
diff --git a/lib/aptlistbugs/logic.rb b/lib/aptlistbugs/logic.rb
index d98b972..e4a3800 100644
--- a/lib/aptlistbugs/logic.rb
+++ b/lib/aptlistbugs/logic.rb
@@ -812,11 +812,6 @@ class Viewer
super(config)
end
- def encode(str)
- buf = str.gsub("<", "<")
- buf
- end
-
def view(new_pkgs, cur_pkgs, bugs)
rss = RSS::Maker.make("2.0") { |maker|
maker.channel.about = ""
@@ -828,7 +823,7 @@ class Viewer
if @config.stats.include?( bug.stat )
item = maker.items.new_item
item.link = "http://bugs.debian.org/#{bug.bug_number}"
- item.title = encode("Bug##{bug.bug_number}: #{bug.desc}")
+ item.title = "Bug##{bug.bug_number}: #{bug.desc}"
item.date = Time.parse("#{bug.time.year}/#{bug.time.month}/#{bug.time.day} #{bug.time.hour}:#{bug.time.min}:#{bug.time.sec}")
buf = ""
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/apt-listbugs/apt-listbugs.git
More information about the Apt-listbugs-commits
mailing list