Changeset 3333

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.

Location:
pykota/trunk/cgi-bin
Files:
3 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")) 
  • 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")) 
  • pykota/trunk/cgi-bin/pykotme.cgi

    r3295 r3333  
    2929import urllib 
    3030import cStringIO 
     31from xml.sax import saxutils 
    3132 
    3233import pykota.appinit 
     
    105106                        _("Quote")) ] 
    106107        content.append(self.body) 
    107         content.append(footer % (_("Quote"), version.__doc__, version.__years__, version.__author__, version.__gplblurb__)) 
     108        content.append(footer % (_("Quote"),  
     109                                 version.__doc__,  
     110                                 version.__years__,  
     111                                 version.__author__,  
     112                                 saxutils.escape(version.__gplblurb__))) 
    108113        for c in content : 
    109114            sys.stdout.write(c.encode(self.charset, "replace"))