Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

No Validation of required Values with MySQL Version < 5.0.3

edited February 2010 in Vanilla 2.0 - 2.8
I just testing my the Vanilla Form with my own Application on a older Server and the Vallidation is not working. So i debug the code and find the bug!

The Null field contains YES if NULL values can be stored in the column. If not, the column contains NO as of MySQL 5.0.3, and '' before that. ( http://dev.mysql.com/doc/refman/5.0/en/show-columns.html )

hier is the FIX: http://github.com/renepenner/Garden/commit/d0a523f4442de9823771c227e9b04bc4abd4b0b6

PS:
$Field->Key == 'PRI' ? TRUE : FALSE

is the same as this:

$Field->Key == 'PRI'

LG
René

Comments

  • MarkMark Vanilla Staff
    Awesome- I got your pull request and I'll be implementing it. Thanks for the fix!
Sign In or Register to comment.