Commit 252a644f authored by Yuliya Bozhko's avatar Yuliya Bozhko
Browse files

Make sure the SQL functions are not quoted (Bug #1406372)



Change-Id: I8ac41fc9915e5ceb7be4b452164d5749b14470a0
Signed-off-by: default avatarYuliya Bozhko <yuliya.bozhko@totaralms.com>
parent c3564def
......@@ -52,7 +52,7 @@ function db_quote_identifier($identifier) {
$identifier = trim($identifier);
if (strpos($identifier, '"') !== false
|| $identifier === '*'
|| preg_match('/count\(/i', $identifier)) {
|| preg_match('/\(/i', $identifier)) {
return $identifier;
}
return '"' . $identifier . '"';
......
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