VirtualBox

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


Ignore:
Timestamp:
Jul 3, 2015 1:41:28 AM (10 years ago)
Author:
vboxsync
Message:

better idea for escapeAttrToStr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/common/webutils.py

    r56295 r56762  
    7878    Stringifies the object and hands it to escapeAttr.  May return unicode string.
    7979    """
    80     return escapeAttr(oObject);
     80    if utils.isString(oObject):
     81        return escapeAttr(oObject);
     82    return escapeAttr(str(oObject));
    8183
    8284def escapeAttrJavaScriptStringDQ(sText):
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