From ffc971a4d3fc071230e0878a6ed9eadddc5fd508 Mon Sep 17 00:00:00 2001 From: Petr Duda Date: Sun, 20 Sep 2020 23:38:59 +0200 Subject: [PATCH] Fix #16325 Editing geometry data throws error on using the GUI Signed-off-by: Petr Duda --- libraries/classes/InsertEdit.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/classes/InsertEdit.php b/libraries/classes/InsertEdit.php index fed7d264fb..abfc8c403e 100644 --- a/libraries/classes/InsertEdit.php +++ b/libraries/classes/InsertEdit.php @@ -2597,6 +2597,9 @@ class InsertEdit $current_value = mb_substr($current_value, 1, -1); // Remove escaping apostrophes $current_value = str_replace("''", "'", $current_value); + // Remove backslash-escaped apostrophes + $current_value = str_replace("\'", "'", $current_value); + return $multi_edit_funcs[$key] . '(' . $current_value . ')'; } elseif (! in_array($multi_edit_funcs[$key], $func_no_param) || ($current_value != "''"