mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Use preg_replace instead of escape (#6575)
Escape broke auto matching fields use preg_replace instead.
This commit is contained in:
@@ -164,7 +164,7 @@
|
|||||||
//loop through the lines and fields
|
//loop through the lines and fields
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($line_fields as $line_field) {
|
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 "<tr>\n";
|
||||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
echo $line_field;
|
echo $line_field;
|
||||||
|
|||||||
@@ -199,7 +199,7 @@
|
|||||||
//loop through user columns
|
//loop through user columns
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($line_fields as $line_field) {
|
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 "<tr>\n";
|
||||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
echo $line_field;
|
echo $line_field;
|
||||||
|
|||||||
@@ -709,7 +709,7 @@
|
|||||||
//loop through user columns
|
//loop through user columns
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($line_fields as $line_field) {
|
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 "<tr>\n";
|
||||||
echo " <td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo " <td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
echo $line_field;
|
echo $line_field;
|
||||||
|
|||||||
@@ -173,7 +173,7 @@
|
|||||||
//loop through user columns
|
//loop through user columns
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($line_fields as $line_field) {
|
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 "<tr>\n";
|
||||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
//echo " ".$text['label-zzz']."\n";
|
//echo " ".$text['label-zzz']."\n";
|
||||||
|
|||||||
@@ -170,7 +170,7 @@
|
|||||||
//loop through user columns
|
//loop through user columns
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($line_fields as $line_field) {
|
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 "<tr>\n";
|
||||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
//echo " ".$text['label-zzz']."\n";
|
//echo " ".$text['label-zzz']."\n";
|
||||||
|
|||||||
@@ -165,7 +165,7 @@
|
|||||||
//loop through user columns
|
//loop through user columns
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($line_fields as $line_field) {
|
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 "<tr>\n";
|
||||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
//echo " ".$text['label-zzz']."\n";
|
//echo " ".$text['label-zzz']."\n";
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
//loop through user columns
|
//loop through user columns
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($line_fields as $line_field) {
|
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 "<tr>\n";
|
||||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
//echo " ".$text['label-zzz']."\n";
|
//echo " ".$text['label-zzz']."\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user