Skip to content

Commit

Permalink
Missing single quote escape
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Sep 1, 2016
1 parent 16ff60d commit 69a0352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export function buildMergeQuery(rows, type){
if (row.UserName === 'ANONYMOUS LOGON@UNKNOWN' || row.UserName === ''){
return
}
row.UserName = row.UserName.toUpperCase()
row.UserName = escapeSingleQuotes(row.UserName.toUpperCase())
row.ComputerName = escapeSingleQuotes(row.ComputerName.toUpperCase())
queries.statements.push({"statement": userQuery.format(row.UserName, row.ComputerName, row.Weight)})
})
Expand Down

0 comments on commit 69a0352

Please sign in to comment.