GX-Bug #44228 » AdditionalFieldQuoteFix.patch
src/system/classes/products/AdditionalField.inc.php (revision ) | ||
---|---|---|
161 | 161 |
`language_id` = ' . $t_language_id . ', |
162 | 162 |
`section_name` = "export_schemes_variables", |
163 | 163 |
`phrase_name` = "p_additional_field#' . $this->v_additional_field_id . '", |
164 |
`phrase_text` = "' . $t_name . '"';
|
|
164 |
`phrase_text` = "' . addslashes($t_name) . '"';
|
|
165 | 165 |
xtc_db_query($t_sql); |
166 | 166 |
|
167 | 167 |
$t_sql = 'REPLACE INTO `language_phrases_cache` |
... | ... | |
169 | 169 |
`language_id` = ' . $t_language_id . ', |
170 | 170 |
`section_name` = "export_schemes_variables", |
171 | 171 |
`phrase_name` = "p_additional_field#' . $this->v_additional_field_id . '", |
172 |
`phrase_text` = "' . $t_name . '",
|
|
172 |
`phrase_text` = "' . addslashes($t_name) . '",
|
|
173 | 173 |
`source` = "language_phrases_edited"'; |
174 | 174 |
xtc_db_query($t_sql); |
175 | 175 |
} |