]> git.evergreen-ils.org Git - Evergreen.git/commit
Address SQL injection vulnerability in SQL ORM layer
authorMike Rylander <mrylander@gmail.com>
Fri, 5 Apr 2013 05:52:16 +0000 (01:52 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 17 Apr 2013 18:31:06 +0000 (14:31 -0400)
commit0aaec933cce3d53638cce0754825521478719095
tree0cdf373ab4e387f2a90714e5a89a9c860e59513c
parent0253ee1b3d203137ae7397353d1b5570552a15be
Address SQL injection vulnerability in SQL ORM layer

If the user-supplied value and the db column are both numbers
(jsonObject->type == JSON_NUMBER, get_primitive(field) == "number") then
don't quote. Otherwise, quote.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/c-apps/oils_sql.c