# HG changeset patch # User mpm@selenic.com # Date 1120152131 28800 # Node ID b8404005d6d5345c717fed50cc6c946f4faa8d45 # Parent 2e9698a5c92cf2e09eb716065d02e7aebc669904 [PATCH] Generate correctly XML entities for obfuscated user -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] Generate correctly XML entities for obfuscated user From: Edouard Gomez manifest hash: 8e4e2d087ff60020c948d34e724fca99c84a9115 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxCpDywK+sNU5EO8RAs6yAKCy97yrMO6VYlkRIF3diLoGClZSOgCfekPE ttPsLRoDTH12Tv6omFg6uUA= =8ZBC -----END PGP SIGNATURE----- diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py --- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -43,7 +43,7 @@ def nl2br(text): return text.replace('\n', '
\n') def obfuscate(text): - return ''.join([ '&#%d' % ord(c) for c in text ]) + return ''.join([ '&#%d;' % ord(c) for c in text ]) def up(p): if p[0] != "/": p = "/" + p