mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 09:04:02 +02:00
Escape \ in enum edit
This commit is contained in:
@@ -428,7 +428,7 @@ function enumValues(s) {
|
||||
function editingLengthBlur() {
|
||||
var field = this.parentNode.firstChild;
|
||||
var val = this.value;
|
||||
field.value = (/^'[^\n]+'$/.test(val) ? val : val && "'" + val.replace(/\n+$/, '').replace(/'/g, "''").replace(/\n/g, "','") + "'");
|
||||
field.value = (/^'[^\n]+'$/.test(val) ? val : val && "'" + val.replace(/\n+$/, '').replace(/'/g, "''").replace(/\\/g, '\\\\').replace(/\n/g, "','") + "'");
|
||||
field.style.display = 'inline';
|
||||
this.style.display = 'none';
|
||||
}
|
||||
|
Reference in New Issue
Block a user