From c19200e4e279981d2c14af9991564e6501b50c78 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 31 Dec 2010 06:41:11 -0500 Subject: [PATCH] Inline edit did not work with strings containing single quotes --- js/sql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/sql.js b/js/sql.js index 96483e0e7e..53d6a292d5 100644 --- a/js/sql.js +++ b/js/sql.js @@ -619,7 +619,7 @@ $(document).ready(function() { if(value.length == 0) { value = 'NULL' } - sql_query += ' ' + key + "='" + value + "' , "; + sql_query += ' ' + key + "='" + value.replace(/'/g, "''") + "' , "; }) //Remove the last ',' appended in the above loop sql_query = sql_query.replace(/,\s$/, ''); -- 2.11.4.GIT