Allow magnet URIs through when sanitizing links

Fixes issue 343.
Thanks to Krzysztof Klimonda for reporting this!

git-svn-id: http://feedparser.googlecode.com/svn/trunk@696 73d2b349-402e-0410-baf4-070fd12ab5b7
Try to continue parsing despite compression errors

git-svn-id: http://feedparser.googlecode.com/svn/trunk@697 73d2b349-402e-0410-baf4-070fd12ab5b7
Handle deflate'd data with no header nor checksum

Apparently different web servers deflate content differently:

    http://www.zlib.net/zlib_faq.html#faq39

    While the HTTP 1.1 RFC 2616 correctly points to the zlib specification in
    RFC 1950 for the "deflate" transfer encoding, there have been reports of
    servers and browsers that incorrectly produce or expect raw deflate data
    per the deflate specification in RFC 1951, most notably Microsoft.

Fixes issue 344.
Thanks to Shawn Abyari for reporting this!

git-svn-id: http://feedparser.googlecode.com/svn/trunk@698 73d2b349-402e-0410-baf4-070fd12ab5b7
Note that issue 321 was revisited

git-svn-id: http://feedparser.googlecode.com/svn/trunk@699 73d2b349-402e-0410-baf4-070fd12ab5b7
Support `itunes:image` elements with a `url` attribute

Fixes issue 347.
Thanks to Google user slymsg for providing this patch!

git-svn-id: http://feedparser.googlecode.com/svn/trunk@700 73d2b349-402e-0410-baf4-070fd12ab5b7
Introduce an ENTITY declaration security test

git-svn-id: http://feedparser.googlecode.com/svn/trunk@701 73d2b349-402e-0410-baf4-070fd12ab5b7
Catch TypeError when trying to open a local file

git-svn-id: http://feedparser.googlecode.com/svn/trunk@702 73d2b349-402e-0410-baf4-070fd12ab5b7
Prevent ENTITY declarations from hiding in encoded documents

ENTITY declarations can be used to create denials of service through
exponential memory consumption. The previous behavior allowed such
declarations to hide in non-ASCII-compatible encoded documents. Now
feedparser will normalize the encoding first and then replace the
DOCTYPE and ENTITY declarations.

git-svn-id: http://feedparser.googlecode.com/svn/trunk@703 73d2b349-402e-0410-baf4-070fd12ab5b7
Take note of the ENTITY declaration security fix

git-svn-id: http://feedparser.googlecode.com/svn/trunk@704 73d2b349-402e-0410-baf4-070fd12ab5b7
Remove references to the `date` key

This was the only place that that key was referenced; it currently
exists in the feedparser code only as a mapping, and will be removed
in a future release to reduce the number of reserved keys.

Also, clean up some copypasta mistakes with the example pubDates.

git-svn-id: http://feedparser.googlecode.com/svn/trunk@705 73d2b349-402e-0410-baf4-070fd12ab5b7
Version bump to 5.1.2

git-svn-id: http://feedparser.googlecode.com/svn/trunk@706 73d2b349-402e-0410-baf4-070fd12ab5b7
Update HTTP Last-Modified example in docs

Fixes issue 350.
Thanks to Google user buburno for reporting this!

git-svn-id: http://feedparser.googlecode.com/svn/trunk@708 73d2b349-402e-0410-baf4-070fd12ab5b7
Demonstrate issue 352

git-svn-id: http://feedparser.googlecode.com/svn/trunk@709 73d2b349-402e-0410-baf4-070fd12ab5b7
Catch SAXException instead of SAXParseException

Fixes issue 352.
Thanks to William J. Bowman for reporting this!

Additionally reported at:

http://flexget.com/ticket/1446
https://bugs.launchpad.net/lxml/+bug/1001301

git-svn-id: http://feedparser.googlecode.com/svn/trunk@710 73d2b349-402e-0410-baf4-070fd12ab5b7
Inline the `_parseHTTPContentType()` code

git-svn-id: http://feedparser.googlecode.com/svn/trunk@711 73d2b349-402e-0410-baf4-070fd12ab5b7
Precompute the character encoding BOMs and markers

git-svn-id: http://feedparser.googlecode.com/svn/trunk@712 73d2b349-402e-0410-baf4-070fd12ab5b7
Minimize the amount of code in the `try` statement

git-svn-id: http://feedparser.googlecode.com/svn/trunk@713 73d2b349-402e-0410-baf4-070fd12ab5b7
`_UTF32_AVAILABLE` is no longer necessary

It's been replaced by adding LookupError exception handling.

git-svn-id: http://feedparser.googlecode.com/svn/trunk@714 73d2b349-402e-0410-baf4-070fd12ab5b7
Use the BOMs defined in the `codecs` module

git-svn-id: http://feedparser.googlecode.com/svn/trunk@715 73d2b349-402e-0410-baf4-070fd12ab5b7
Rearrange the encoding sniffing

Bonus: shorter expressions and improved readability!

git-svn-id: http://feedparser.googlecode.com/svn/trunk@716 73d2b349-402e-0410-baf4-070fd12ab5b7