Ignore:
Timestamp:
24 Nov 2015, 21:12:44 (9 years ago)
Author:
uli
Message:

Use cgi.escape one time rather than 100 times.

We do not have to escape every single line of a logfile. It is
sufficient to cgi.escape the while result.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r13495 r13496  
    17351735            return
    17361736        try:
    1737             lines = self.context.queryLogfiles(logname, query)
    1738             self.result = ''.join([cgi.escape(line) for line in lines])
     1737            self.result = cgi.escape(
     1738                ''.join(self.context.queryLogfiles(logname, query)))
    17391739        except ValueError:
    17401740            self.flash(_('Invalid search expression.'), type='danger')
Note: See TracChangeset for help on using the changeset viewer.