Use preg_replace instead of escape (#6575)

Escape broke auto matching fields use preg_replace instead.
This commit is contained in:
FusionPBX
2023-03-10 08:54:49 -08:00
committed by GitHub
parent d8a45a5872
commit b449bef03e
7 changed files with 7 additions and 7 deletions
@@ -164,7 +164,7 @@
//loop through the lines and fields
$x = 0;
foreach ($line_fields as $line_field) {
$line_field = trim(escape(trim($line_field)), $enclosure);
$line_field = preg_replace('#[^a-zA-Z0-9_]#', '', $line_field);
echo "<tr>\n";
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo $line_field;