From 2e51d5c74da6f4dda8a1f96781811d0b4c6c83c5 Mon Sep 17 00:00:00 2001 From: "http://gmcmanus.myopenid.com/" Date: Mon, 21 Jul 2008 23:25:17 -0400 Subject: email obfuscation by Text::Markdown undone by HTML::Scrubber --- ...bber_undoes_email_obfuscation_by_Text::Markdown.mdwn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn (limited to 'doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn') diff --git a/doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn b/doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn new file mode 100644 index 000000000..17836abfe --- /dev/null +++ b/doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn @@ -0,0 +1,17 @@ +From the source of [[usage]]: + + joey@ikiwiki.info + +Text::Markdown obfuscates email addresses in the href= attribute and in the text. +Apparently this can't be configured. + +HTML::Scrubber doesn't set `attr_encoded` for its HTML::Parser, so the href= attribtute is decoded. +Currently it seems it doesn't set `attr_encoded` for good reason: so attributes can be sanitized easily, +e.g. as in htmlscrubber with `$safe_url_regexp`. +This apparently can't be configured either. + +So I can't see an obvious solution to this. +Perhaps improvements to Text::Markdown or HTML::Scrubber can allow a fix. + +One question is: how useful is email obfuscation? +Don't spammers use HTML parsers? -- cgit v1.2.3 From 88ff7480e6b2f639aa62af53dbb9e63cc3632571 Mon Sep 17 00:00:00 2001 From: "http://gmcmanus.myopenid.com/" Date: Tue, 22 Jul 2008 01:22:14 -0400 Subject: bug already noted, so mark as done --- doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn') diff --git a/doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn b/doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn index 17836abfe..bac8e4acd 100644 --- a/doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn +++ b/doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn @@ -15,3 +15,6 @@ Perhaps improvements to Text::Markdown or HTML::Scrubber can allow a fix. One question is: how useful is email obfuscation? Don't spammers use HTML parsers? + +> I now see this was noted in the formatting [[/ikiwiki/formatting/discussion]], and won't/can't be fixed. +> So I guess this is [[done]]. --Gabriel -- cgit v1.2.3 From 602ad172d0cb5b07de0de2c7cc6eedb1ede74383 Mon Sep 17 00:00:00 2001 From: "http://gmcmanus.myopenid.com/" Date: Tue, 22 Jul 2008 05:10:46 -0400 Subject: patch to prevent email obfuscation --- ...tmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn') diff --git a/doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn b/doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn index bac8e4acd..b010a02b3 100644 --- a/doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn +++ b/doc/bugs/htmlscrubber_undoes_email_obfuscation_by_Text::Markdown.mdwn @@ -18,3 +18,13 @@ Don't spammers use HTML parsers? > I now see this was noted in the formatting [[/ikiwiki/formatting/discussion]], and won't/can't be fixed. > So I guess this is [[done]]. --Gabriel + +I've [[patch]]ed mdwn.pm to prevent Text::Markdown from obfuscating the emails. +The relevant commits are on the master branch of [my "fork" of ikiwiki on Github] [github]: + +- 7d0970adbcf0b63e7e5532c239156f6967d10158 +- 52c241e723ced4d7c6a702dd08cda37feee75531 + +--Gabriel. + +[github]: http://github.com/gmcmanus/ikiwiki/ -- cgit v1.2.3