The branch, master has been updated via c19200e4e279981d2c14af9991564e6501b50c78 (commit) from ecdbb6dcc73aa97fc4df90d92e0ff4b4530f69e9 (commit)
- Log ----------------------------------------------------------------- commit c19200e4e279981d2c14af9991564e6501b50c78 Author: Marc Delisle marc@infomarc.info Date: Fri Dec 31 06:41:11 2010 -0500
Inline edit did not work with strings containing single quotes
-----------------------------------------------------------------------
Summary of changes: js/sql.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/js/sql.js b/js/sql.js index 96483e0..53d6a29 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$/, '');
hooks/post-receive