Use defusedxml for safer XML parsing

This commit is contained in:
Simeon Warner 2016-01-30 08:52:55 -05:00
parent 770e55552d
commit 4703f22737
5 changed files with 11 additions and 5 deletions

View File

@ -6,7 +6,11 @@ core specification version. Versions 1.0.x implement the v1.0
ResourceSync specification which was standardized as ANSI/NISO Z39.99-2014
<http://www.openarchives.org/rs/1.0/toc>.
v1.0.0 2014-06-XX
v1.0.1 2016-01-30
* Improved test coverage
* Use defusedxml for safer XML parsing
v1.0.0 2014-06-18
* Update for v1.0, Z39.99-2014 specification (http://www.openarchives.org/rs/1.0/)
* Partial implementation of dump output (no read yet)

2
README
View File

@ -101,7 +101,7 @@ Thanks to:
Copyright and License
---------------------
Copyright 2012--2014 Simeon Warner
Copyright 2012--2016 Simeon Warner
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -19,7 +19,7 @@ import re
import time
import logging
from urllib import URLopener
from xml.etree.ElementTree import parse
from defusedxml.ElementTree import parse
from resource import Resource
from resource_list import ResourceList

View File

@ -4,7 +4,8 @@ import re
import os
import sys
import logging
from xml.etree.ElementTree import ElementTree, Element, parse, tostring
from defusedxml.ElementTree import parse
from xml.etree.ElementTree import ElementTree, Element, tostring
import StringIO
from resource import Resource

View File

@ -37,7 +37,8 @@ setup(
url='http://github.com/resync/resync',
install_requires=[
"requests",
"python-dateutil>=1.5"
"python-dateutil>=1.5",
"defusedxml>=0.41"
],
test_suite="resync.test",
)