oops that was an injection vector!
Former-commit-id: c0aeda6e6f83c840a4a432c942de9d88aafc8a22
This commit is contained in:
@@ -50,7 +50,12 @@ function LevenshteinDistance(s, t) {
|
||||
return d[n][m];
|
||||
}
|
||||
|
||||
function SanatiseQuery(query) {
|
||||
return query.replace(/[^a-zA-Z0-9 ]/g, '').toLowerCase();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
SanatiseQuery,
|
||||
LevenshteinDistance,
|
||||
ResultsPerPage: 16,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user