obfuscated mails?
Isaac Jurado
diptongo at gmail.com
Thu Dec 4 04:31:16 CST 2008
On Thu, Dec 4, 2008 at 11:20 AM, Bartosz SKOWRON <getxsick at gmail.com> wrote:
>
> Why mercurial's repos don't use it? Like here:
> http://selenic.com/repo/hg
They actually do. The paper template only uses '{author|obfuscate}',
'{author|person}' and '{author|user}'. For example, in this page:
http://selenic.com/repo/index.cgi/hg/rev/6aafd75fb924
you can see:
author: Matt Mackall <mpm...>
However, if you check the page source (Ctrl + U on firefox), you'll find
the following:
...
<table id="changesetEntry">
<tr>
<th class="author">author</th>
<td class="author">Mat...</td>
</tr>
...
So the source is a bit obfuscated. Of course this does not stop
sophisticated bots to still gather email addresses. If you have an idea
on how to protect such information you could write a template filter.
Check the mercurial/templatefilters.py file to see some examples.
Cheers.
--
Isaac Jurado
http://www.krenel.net
"The noblest pleasure is the joy of understanding"
Leonardo da Vinci
More information about the Mercurial
mailing list