Compare commits

...

4 commits

Author SHA1 Message Date
Dannieboy
0a11860e01 Made the module less strict without breaking the atom standart. 2021-01-01 00:00:01 +01:00
Dannieboy
4a254b719b Revert "Made the plugin less strict while still adhering to the atom standart."
This reverts commit 0c5abfb2cc.
2020-12-31 23:54:30 +01:00
Thelie0
0c5abfb2cc Made the plugin less strict while still adhering to the atom standart. 2020-12-31 23:25:52 +01:00
Lars Kiesow
ffe3e4d752
Release 0.9.0
- Prevent XML Denial of Service Attacks
- Make Generator Optional (Atom)
- Properly Parse text/xml
- Add support for html summaries for Atom feeds
2020-01-28 17:58:13 +01:00
3 changed files with 6 additions and 13 deletions

View file

@ -121,14 +121,9 @@ class FeedGenerator(object):
if not a.get('name'):
continue
author = xml_elem('author', feed)
name = xml_elem('name', author)
name.text = a.get('name')
if a.get('email'):
email = xml_elem('email', author)
email.text = a.get('email')
if a.get('uri'):
uri = xml_elem('uri', author)
uri.text = a.get('uri')
for k in a.keys():
e = xml_elem(k, author)
e.text = str(a.get(k))
for l in self.__atom_link or []:
link = xml_elem('link', feed, href=l['href'])
@ -530,9 +525,7 @@ class FeedGenerator(object):
if author is not None:
if replace or self.__atom_author is None:
self.__atom_author = []
self.__atom_author += ensure_format(author,
set(['name', 'email', 'uri']),
set(['name']))
self.__atom_author += [author]
self.__rss_author = []
for a in self.__atom_author:
if a.get('email'):

View file

@ -10,7 +10,7 @@
'''
'Version of python-feedgen represented as tuple'
version = (0, 8, 0)
version = (0, 9, 0)
'Version of python-feedgen represented as string'

View file

@ -1,7 +1,7 @@
%global pypi_name feedgen
Name: python-%{pypi_name}
Version: 0.8.0
Version: 0.9.0
Release: 1%{?dist}
Summary: Feed Generator (ATOM, RSS, Podcasts)