Changeset 3875


Ignore:
Timestamp:
26 Jan 2009, 09:50:22 (16 years ago)
Author:
Henrik Bettermann
Message:

allow only two possible referers (see previous revision)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/interswitch_cb.py

    r3874 r3875  
    4646logger.info('%s, callback referer = %s, IP = %s' % (student_id,referer,real_ip))
    4747
    48 if referer == "":
    49     logger.info('%s, no callback referrer, callback rejected, IP = %s' % (student_id,real_ip))
     48if not 'webpay.interswitchng.com' in referer and not 'waeup.org' in referer:
     49    logger.info('%s, wrong callback referrer %s, callback rejected, IP = %s' % (student_id,referer,real_ip))
    5050    return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
    5151
     
    8585pay_doc = context.getContent()
    8686pay_doc.edit(mapping = pd)
    87 resp = pd['resp_code']
     87resp = pd['resp_code'] 
    8888
    8989s_brain = context.students_catalog(id=student_id)[0]
Note: See TracChangeset for help on using the changeset viewer.