The branch, master has been updated via 6206cd30f43e8ebb1b60073ea8044f8f88c4434a (commit) from 2ecf4b3641830ea454102360bea5d847417224c5 (commit)
- Log ----------------------------------------------------------------- commit 6206cd30f43e8ebb1b60073ea8044f8f88c4434a Author: Marc Delisle marc@infomarc.info Date: Thu Oct 14 13:06:42 2010 -0400
error when saving an inline-edited row
-----------------------------------------------------------------------
Summary of changes: js/sql.js | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/js/sql.js b/js/sql.js index 019986a..d640c4b 100644 --- a/js/sql.js +++ b/js/sql.js @@ -8,6 +8,16 @@ */
/** + * decode a string URL_encoded + * + * @param string str + * @return string the URL-decoded string + */ +function PMA_urldecode(str) { + return decodeURIComponent(str.replace(/+/g, '%20')); +} + +/** * Get the field name for the current field. Required to construct the query * for inline editing * @@ -576,7 +586,7 @@ $(document).ready(function() { }) //Remove the last ',' appended in the above loop sql_query = sql_query.replace(/,\s$/, ''); - sql_query += ' WHERE ' + where_clause; + sql_query += ' WHERE ' + PMA_urldecode(where_clause);
/** * @var rel_fields_list String, url encoded representation of {@link relations_fields}
hooks/post-receive