Ticket #264 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Tycoon bank account with re special chars

Reported by: rikbsd Owned by: KevinLai
Priority: highest Milestone:
Component: Auctioneer Version:
Severity: blocker Keywords:
Cc:

Description

Email address with '+' sign will cause an error. Here the patch that will fix this.

--- BankClient.py       2006-07-20 16:13:53.000000000 +0400
+++ /usr/lib/python2.4/site-packages/Tycoon/BankClient.py       2006-09-05 19:59:09.000000000 +0400
@@ -267,12 +267,12 @@

         espk = from_public_key.replace("+", "\+")
         pat = "(%s)(%s)(%s)([1-9]+[0-9]*)_transfer" % (
-            from_account, espk, to_account)
+            re.escape(from_account), espk, re.escape(to_account))
         m = re.search(pat, receipt)
         if m == None:
             raise BankClientException(
                 'Not a receipt for a transfer from "%s" to "%s":\n%s' % (
                 from_account, to_account, receipt))
         return long(m.groups()[3])

     def create_account(

Change History

Changed 3 years ago by KevinLai

  • status changed from new to closed
  • resolution set to fixed

Fixed in [b0b87d6afcb2].

Note: See TracTickets for help on using tickets.