From b50f42891ea09320da1ec0b363126ae6e1c8af05 Mon Sep 17 00:00:00 2001 From: Fabio Lovato Date: Thu, 15 Mar 2018 10:47:14 +0100 Subject: [PATCH] Aggiunto escape per problemi di apici durante l'inserimento query --- modules/viste/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/viste/edit.php b/modules/viste/edit.php index 717c6381d..332e48016 100644 --- a/modules/viste/edit.php +++ b/modules/viste/edit.php @@ -146,7 +146,7 @@ if (!empty($options) && $options != 'custom') {
- {[ "type": "textarea", "label": "'.tr('Query prevista').'", "name": "query['.$key.']", "value": "'.$field['query'].'"'; + {[ "type": "textarea", "label": "'.tr('Query prevista').'", "name": "query['.$key.']", "value": "'.str_replace( '"', '\"', $field['query'] ).'"'; if (!$editable) { echo ', "readonly": "1"'; }