1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-22 12:00:19 +01:00

Aggiunto escape per problemi di apici durante l'inserimento query

This commit is contained in:
Fabio Lovato 2018-03-15 10:47:14 +01:00
parent a6fb822187
commit b50f42891e

View File

@ -146,7 +146,7 @@ if (!empty($options) && $options != 'custom') {
</div>
<div class="row">
<div class="col-xs-12 col-md-12">
{[ "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"';
}