demydd / pandoc

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

Email obfuscation double-encodes entities in link text #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To see the bug:
1. Create a link with text containing a character entity, `[Foo 
&c.](mailto:foo@bar.baz)`; and
2. Translate the document to HTML.

With JavaScript enabled one sees the expected link "Foo &c.". 
With JS disabled the one sees the incorrect text "Foo &c. (foo at bar dot 
baz)".

Encountered using the OS X package of pandoc 0.3. Tested with Camino 1.0.3 and 
eLinks 0.10.6.

The attached pandoc-0.3-obfuscateString.patch resolves the issue, and doesn't 
introduce any 
regressions w.r.t. the test suite.

Original issue reported on code.google.com by thsut...@gmail.com on 8 Apr 2007 at 10:07

Attachments:

GoogleCodeExporter commented 8 years ago
Never mind, it's already been fixed as of revision 254.

Original comment by thsut...@gmail.com on 8 Apr 2007 at 10:31

GoogleCodeExporter commented 8 years ago
Ignore that previous comment -- the problem still exists in an svn checkout as 
of 2007-04-08. The patch above 
won't apply cleanly against svn trunk as `Text.Pandoc.Writers.HTML` no longer 
imports `Text.Pandoc.Entities`, 
thus there is a patch (again, a two-liner)  against svn trunk attached to this 
comment.

Original comment by thsut...@gmail.com on 8 Apr 2007 at 10:52

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks very much for the bug report, and the patch!
Fixed as of r579.

Original comment by fiddloso...@gmail.com on 8 Apr 2007 at 9:18