[Koha-bugs] [Bug 9454] NewBasket does not use placeholders in sql

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 29 19:31:11 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9454

Galen Charlton <gmcharlt at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #14776|0                           |1
        is obsolete|                            |

--- Comment #2 from Galen Charlton <gmcharlt at gmail.com> ---
Created attachment 14924
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14924&action=edit
Bug 9454: Use placeholders when adding basket

Should always use placeholders when passing variables
to DBI; avoids unforeseen bugs and security issues.

Also:

- reformated the long lists of parameters to add CR
- moved the setting of defaults out of the call to ModBasket to
  clarify code
- Setting parameters to undef if they were not defined
  was unnecessary bloat and obscuration

Testing:
Patch should not change functional behaviour. To test check that
order baskets can still be correctly created.

Signed-off-by: Galen Charlton <gmc at esilibrary.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list