[Openledger-developer] Posted Rev1. of the OpenLedger API
Brought to you by:
klavs
From: Klavs K. <kl...@vs...> - 2005-03-08 19:33:15
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi guys, I've just committed the first steps of the API - totally without having tried running it ;) I've just "snagged" the audittrail function from SL/Form.pm - haven't yet rewritten it. I would be very happy if you'd have a look in the postTransaction function and see if you can see any problems. You can compare to the SL/GL.pm post_transaction function. I've removed the qq and other form-handling things (such as the code that figures out if the user gave a credit or debit amount for the transaction), as they do not belong in the API - it is up to what program who calls the API to deliver proper data. p.s. I don't check for valid data (like amount actually being a number) or if a db transaction failed. I'm not a 100% certain if the commit in the end will just fail, if any of the transactions before it did? I don't do any "obvious" input validation - as the ? in the prepare statements takes care of it for us - as to protect against SQL Injection :) - -- Regards, Klavs Klavsen, GSEC - kl...@vs... - http://www.vsen.dk PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62 "Those who do not understand Unix are condemned to reinvent it, poorly." ~ --Henry Spencer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCLf31PToLeX4GPGIRAgbIAJ9q+3RN+gXc2hsuNa147SL8IXi3SgCfSILx BbJ3dA4jsPoSjCUIvTALd60= =6aLJ -----END PGP SIGNATURE----- |