Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHugues Peccatte <hugues.peccatte@gmail.com>2019-08-21 22:32:32 +0300
committerHugues Peccatte <hugues.peccatte@gmail.com>2019-08-21 22:32:32 +0300
commit67c94b17fd04ec4ba22b4f8e5dcf9d3e3ab94eec (patch)
tree8db3a2163a72fb1fbc8c7b5bb798abd63926e7a3 /js
parent10745bb39275a6f5ac7c62c063fa6433dfc8854b (diff)
Designer export fails when a table name contains special chars
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/designer/move.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/designer/move.js b/js/designer/move.js
index 3fb8cd3cb7..eb2394c81c 100644
--- a/js/designer/move.js
+++ b/js/designer/move.js
@@ -662,10 +662,10 @@ function Get_url_pos (forceString) {
var poststr = '';
var argsep = PMA_commonParams.get('arg_separator');
for (var key in j_tabs) {
- poststr += argsep + 't_x[' + key + ']=' + parseInt(document.getElementById(key).style.left, 10);
- poststr += argsep + 't_y[' + key + ']=' + parseInt(document.getElementById(key).style.top, 10);
- poststr += argsep + 't_v[' + key + ']=' + (document.getElementById('id_tbody_' + key).style.display === 'none' ? 0 : 1);
- poststr += argsep + 't_h[' + key + ']=' + (document.getElementById('check_vis_' + key).checked ? 1 : 0);
+ poststr += argsep + 't_x[' + decodeURIComponent(key) + ']=' + parseInt(document.getElementById(key).style.left, 10);
+ poststr += argsep + 't_y[' + decodeURIComponent(key) + ']=' + parseInt(document.getElementById(key).style.top, 10);
+ poststr += argsep + 't_v[' + decodeURIComponent(key) + ']=' + (document.getElementById('id_tbody_' + key).style.display === 'none' ? 0 : 1);
+ poststr += argsep + 't_h[' + decodeURIComponent(key) + ']=' + (document.getElementById('check_vis_' + key).checked ? 1 : 0);
}
return poststr;
} else {