Prevent ENTITY declarations from hiding in encoded documents
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: 0b64a41b982ff43e34f7d1fb28f67dfdd6c68d26@703 73d2b349-402e-0410-baf4-070fd12ab5b7

cinemapub/bright-response,cinemapub/bright-response