[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 <ed.gomez@free.fr>
manifest hash:
8e4e2d087ff60020c948d34e724fca99c84a9115
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCxCpDywK+sNU5EO8RAs6yAKCy97yrMO6VYlkRIF3diLoGClZSOgCfekPE
ttPsLRoDTH12Tv6omFg6uUA=
=8ZBC
-----END PGP SIGNATURE-----
--- a/mercurial/hgweb.py Thu Jun 30 08:47:31 2005 -0800
+++ b/mercurial/hgweb.py Thu Jun 30 09:22:11 2005 -0800
@@ -43,7 +43,7 @@
return text.replace('\n', '<br/>\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