« Caution! Test in Progress | Main | 5 Ways To A Slower Test Suite »

July 16, 2004

A trim(), a trim(), my kingdom for a trim()!

Quick rant to get the weekend started on the right footing:

In the spirit of becoming an even more service oriented company, the good souls behind the Commonwealth Bank's Netbank system have chosen to skimp on measly tasks like sanitizing data prior to validation on their transfer money page...

The end result? Whilst they have no qualms about transferring amounts such as "13", it is deemed "illegal" to request a transfer of "13 " (note the space).

As personal service to my bank (after all, they've been inconveniencing me for so long, I feel it's time for me to give something back), here's some free Java consulting:

transferAmount = (transferAmount == null) ? null : transferAmount.trim();

Posted by Andy Marks at July 16, 2004 09:08 PM

Comments

Wait until you see the bit where you can't cut-and-paste the BSB number from their own website into an account transfer because it's in the wrong format. (Though they may have fixed that now; I stopped using CommBank about a year ago)

Posted by: Robert Watkins at July 17, 2004 11:03 AM

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?