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/dumpykota.cgi

    r3295 r3333  
    2828import cgi 
    2929import urllib 
     30from xml.sax import saxutils 
    3031 
    3132import pykota.appinit 
     
    136137        content.append(u"<br />") 
    137138        content.append(self.htmlSumCheckbox(self.options.get("sum", ""))) 
    138         content.append(footer % (_("Dump"), version.__doc__, version.__years__, version.__author__, version.__gplblurb__)) 
     139        content.append(footer % (_("Dump"),  
     140                                 version.__doc__,  
     141                                 version.__years__,  
     142                                 version.__author__,  
     143                                 saxutils.escape(version.__gplblurb__))) 
    139144        for c in content : 
    140145            sys.stdout.write(c.encode(self.charset, "replace"))