Commit d4db688c authored by Penny Leach's avatar Penny Leach
Browse files

mysql support: quote keywords in raw sql

parent a3fad41c
......@@ -154,7 +154,7 @@ if (isset($key)) {
// Begin the registration form buliding
if (!$registration = get_record_select('usr_registration', 'key = ? AND expiry >= ?', array($key, db_format_timestamp(time())))) {
if (!$registration = get_record_select('usr_registration', '"key" = ? AND expiry >= ?', array($key, db_format_timestamp(time())))) {
die_info(get_string('registrationnosuchkey', 'auth.internal'));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment