[PATCH] Generate correctly XML entities for obfuscated user
authormpm@selenic.com
Thu, 30 Jun 2005 09:22:11 -0800
changeset 533 b8404005d6d5
parent 532 2e9698a5c92c
child 534 ab0d1bfeee7c
[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-----
mercurial/hgweb.py
--- 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