[med-svn] r1380 - trunk/community/infrastructure/test

tille at alioth.debian.org tille at alioth.debian.org
Fri Feb 15 15:37:30 UTC 2008


Author: tille
Date: 2008-02-15 15:37:29 +0000 (Fri, 15 Feb 2008)
New Revision: 1380

Modified:
   trunk/community/infrastructure/test/cddtasktools.py
Log:
'&' has to be excaped in HTML


Modified: trunk/community/infrastructure/test/cddtasktools.py
===================================================================
--- trunk/community/infrastructure/test/cddtasktools.py	2008-02-14 21:55:21 UTC (rev 1379)
+++ trunk/community/infrastructure/test/cddtasktools.py	2008-02-15 15:37:29 UTC (rev 1380)
@@ -53,7 +53,7 @@
     for line in lines[1:]:
         LongDesc += line.strip() + ' \n'
     # This is to sanitize output for XHTML pages. --David
-    LongDesc = LongDesc.replace("<", "&lt;").replace(">", "&gt;")
+    LongDesc = LongDesc.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
     LongDesc = LongDesc.replace("\n .\n", "<br /><br />").replace("\n", "")
     return (ShortDesc, LongDesc)
 




More information about the debian-med-commit mailing list