HaveF / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

Parsing particular JSON in content creates mangled string #316

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

feedparser.parse(open("test"))

What is the expected output? What do you see instead?

Entry content is mangled

What version of the product are you using? On what operating system?

5.1, python 2.7, Ubuntu 11.04

Please provide any additional information below.

If you change the "2005" at the end of the JSON content to "x2005", the string 
is not mangled.

Original issue reported on code.google.com by ehetzner@gmail.com on 11 Dec 2011 at 8:28

Attachments:

GoogleCodeExporter commented 9 years ago
Attaching the right test file

Original comment by ehetzner@gmail.com on 11 Dec 2011 at 8:31

Attachments:

GoogleCodeExporter commented 9 years ago
This is due to over-aggressive base64 decoding. I'll address this as soon as I 
can!

Original comment by kurtmckee on 12 Dec 2011 at 5:39

GoogleCodeExporter commented 9 years ago
Thanks for merging!

Original comment by ehetzner@gmail.com on 12 Dec 2011 at 6:06