Ignore:
Timestamp:
23 Nov 2015, 10:55:07 (9 years ago)
Author:
Henrik Bettermann
Message:

Remove HTML tags from eTranzact responses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r13423 r13490  
    2020import urllib
    2121import urllib2
     22import re
    2223from xml.dom.minidom import parseString
    2324import grok
     
    233234        success = f.read()
    234235        success = success.replace('\r\n','')
     236        # eTranzact sends strange HTML tags which must be removed.
     237        success = re.sub("<.*?>", "", success)
    235238        if 'CUSTOMER_ID' not in success:
    236239            msg = _('Invalid or unsuccessful callback: ${a}',
Note: See TracChangeset for help on using the changeset viewer.