Show
Ignore:
Timestamp:
02/03/08 19:04:26 (16 years ago)
Author:
jerome
Message:

Now escapes the content of the GPL blurb, which contains (in its
v3.0) reserved HTML characters.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/cgi-bin/printquota.cgi

    r3295 r3333  
    2828import cgi 
    2929import urllib 
     30from xml.sax import saxutils 
    3031 
    3132from mx import DateTime 
     
    104105                              _("Report")) ] 
    105106        content.append(self.body)                       
    106         content.append(footer % (_("Report"), version.__doc__, version.__years__, version.__author__, version.__gplblurb__)) 
     107        content.append(footer % (_("Report"),  
     108                                 version.__doc__,  
     109                                 version.__years__,  
     110                                 version.__author__,  
     111                                 saxutils.escape(version.__gplblurb__))) 
    107112        for c in content : 
    108113            sys.stdout.write(c.encode(self.charset, "replace"))