VirtualBox

Changeset 81776 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Nov 11, 2019 7:26:13 PM (5 years ago)
Author:
vboxsync
Message:

testmanager/wuihlpform.py: Mixed up escapeElem and escapeAttr for text field values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpform.py

    r79087 r81776  
    159159                         u'        </div></div>\n'
    160160                         u'      </li>\n'
    161                          % ( escapeAttr(sName), escapeAttr(sName), sExtraAttribs, escapeElem(sValue), sPostHtml ));
     161                         % ( escapeAttr(sName), escapeAttr(sName), sExtraAttribs, escapeAttr(unicode(sValue)), sPostHtml ));
    162162
    163163    def addTextRO(self, sName, sValue, sLabel, sSubClass = 'string', sExtraAttribs = '', sPostHtml = ''):
     
    170170                         u'        </div></div>\n'
    171171                         u'      </li>\n'
    172                          % ( escapeAttr(sName), escapeAttr(sName), sExtraAttribs, escapeElem(unicode(sValue)), sPostHtml ));
     172                         % ( escapeAttr(sName), escapeAttr(sName), sExtraAttribs, escapeAttr(unicode(sValue)), sPostHtml ));
    173173
    174174    def addWideText(self, sName, sValue, sLabel, sExtraAttribs = '', sPostHtml = ''):
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette