gitweb: slight e-mail address obfuscation
commit035b9b6da2538d4bf3cbdc4944124f24cb195e4c
authorPetr Baudis <pasky@suse.cz>
Mon, 2 Nov 2009 23:45:26 +0000 (3 00:45 +0100)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 22 Mar 2015 07:36:07 +0000 (22 00:36 -0700)
tree625630a9c17efb7d8d04cc0fea6618f44dc0702f
parent1ad2cfadb4f369caa6ebc173a10e7d8aebe5930f
gitweb: slight e-mail address obfuscation

This patch introduces new email_obfuscate() function to pass e-mail
addresses through. It HTML-escapes them and rewrites the @ as an
HTML/XML entity. If the HTML::Email::Obfuscate module is installed,
it makes use of its lite version.

The patch is loosely based on a patch by Stefan de Konink
<skinkie@xs4all.nl> he submitted for repo.or.cz long ago.

Signed-off-by: Petr Baudis <pasky@suse.cz>
gitweb/gitweb.perl