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/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"))