PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Core/Database/FormEntryMetaModel.php +2 -2 3.1.43.3.1 View file →
@@ -407,9 +407,9 @@
407 407 private static function csvInjectionPrevent($value)
408 408 {
409 409 $formula = ['=', '-', '+', '@', "\t", "\r"];
410 410 $valueFilter = preg_replace('/[\]["]/i', '', $value);
411 - if (in_array(substr($value, 0, 1), $formula, true)) {
411 + if (in_array(substr($valueFilter, 0, 1), $formula, true)) {
412 412 $valueFilter = "'" . trim($valueFilter);
413 413 }
414 414
415 415 return $valueFilter;
@@ -445,9 +445,9 @@
445 445 $value = trim($value);
446 446
447 447 // Get label from fieldMap or use key
448 448 $label = $fieldMap[$childKey]['adminLbl'] ?? $childKey;
449 - $formattedPairs[] = "$label: " . self::unescapeString($value);
449 + $formattedPairs[] = "$label: " . self::csvInjectionPrevent(self::unescapeString($value));
450 450 }
451 451
452 452 $rows[] = implode(', ', $formattedPairs);
453 453 }