From bcc1577ec418c1ee5d1486a1cc524e43f56d6633 Mon Sep 17 00:00:00 2001 From: Seth Fitzsimmons Date: Tue, 6 Jan 2015 12:40:01 -0800 Subject: [PATCH] Add 'refresh' to the list of keywords that write --- app/controllers/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/app.js b/app/controllers/app.js index 013ec6de..527b9354 100755 --- a/app/controllers/app.js +++ b/app/controllers/app.js @@ -172,7 +172,7 @@ app.get(global.settings.base_url+'/version', function(req, res) { res.send(getVersion()); }); -var sqlQueryMayWriteRegex = new RegExp("\\b(alter|insert|update|delete|create|drop|reindex|truncate)\\b", "i"); +var sqlQueryMayWriteRegex = new RegExp("\\b(alter|insert|update|delete|create|drop|reindex|truncate|refresh)\\b", "i"); /** * This is a fuzzy check, the return could be true even if the query doesn't really write anything. But you can be * pretty sure of a false return.