Changeset e9c9772 in tailbone


Ignore:
Timestamp:
03/27/19 19:42:44 (6 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
9ace36c
Parents:
d20d22f
Message:

Fix HTML escaping bug when rendering products with pack price

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/views/products.py

    rd20d22f re9c9772  
    452452                if price.price is not None and price.pack_price is not None:
    453453                    if price.multiple > 1:
    454                         return HTML("$ {:0.2f} / {}&nbsp; ($ {:0.2f} / {})".format(
     454                        return HTML.literal("$ {:0.2f} / {}&nbsp; ($ {:0.2f} / {})".format(
    455455                            price.price, price.multiple,
    456456                            price.pack_price, price.pack_multiple))
    457                     return HTML("$ {:0.2f}&nbsp; ($ {:0.2f} / {})".format(
     457                    return HTML.literal("$ {:0.2f}&nbsp; ($ {:0.2f} / {})".format(
    458458                        price.price, price.pack_price, price.pack_multiple))
    459459                if price.price is not None:
Note: See TracChangeset for help on using the changeset viewer.