Changeset 9dc0288 in trunk


Ignore:
Timestamp:
2020-08-28T01:52:48Z (5 years ago)
Author:
Sajith Sasidharan <sajith@…>
Branches:
master
Children:
d104303
Parents:
894195d
Message:

Use html.escape() instead of cgi.escape()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/test/web/test_web.py

    r894195d r9dc0288  
    11from __future__ import print_function
    22
    3 import os.path, re, urllib, time, cgi
     3import os.path, re, urllib, time
    44import json
    55import treq
     
    366366            self._htmlname_urlencoded = urllib.quote(self._htmlname_raw, '')
    367367            self._htmlname_escaped = html.escape(self._htmlname_raw)
    368             self._htmlname_escaped_attr = cgi.escape(self._htmlname_raw, quote=True)
     368            self._htmlname_escaped_attr = html.escape(self._htmlname_raw, quote=True)
    369369            self._htmlname_escaped_double = html.escape(html.escape(self._htmlname_raw, quote=True))
    370370            self.HTMLNAME_CONTENTS, n, self._htmlname_txt_uri = self.makefile(0)
Note: See TracChangeset for help on using the changeset viewer.