Skip to content

Commit

Permalink
Substitute zen_db_output with zen_output_string_protected to support …
Browse files Browse the repository at this point in the history
…issue zencart#270 and begin substituting foreach for while loops.
  • Loading branch information
mc12345678 committed Feb 17, 2016
1 parent 2724e31 commit 13b6bbf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/invoice.php
Expand Up @@ -232,7 +232,7 @@ function couponpopupWindow(url) {
echo ' <tr>' . "\n" .
' <td class="smallText" align="center" valign="top">' . zen_datetime_short($orders_history->fields['date_added']) . '</td>' . "\n";
echo ' <td class="smallText" valign="top">' . $orders_status_array[$orders_history->fields['orders_status_id']] . '</td>' . "\n";
echo ' <td class="smallText" valign="top">' . ($orders_history->fields['comments'] == '' ? TEXT_NONE : nl2br(zen_db_output($orders_history->fields['comments']))) . '&nbsp;</td>' . "\n" .
echo ' <td class="smallText" valign="top">' . ($orders_history->fields['comments'] == '' ? TEXT_NONE : nl2br(zen_output_string_protected($orders_history->fields['comments']))) . '&nbsp;</td>' . "\n" .
' </tr>' . "\n";
$orders_history->MoveNext();
if (ORDER_COMMENTS_INVOICE == 1 && $count_comments >= 1) {
Expand Down
2 changes: 1 addition & 1 deletion admin/orders.php
Expand Up @@ -685,7 +685,7 @@ function couponpopupWindow(url) {
echo zen_image(DIR_WS_ICONS . 'unlocked.gif', TEXT_VISIBLE) . "</td>\n";
}
echo ' <td class="smallText">' . $orders_status_array[$orders_history->fields['orders_status_id']] . '</td>' . "\n";
echo ' <td class="smallText">' . nl2br(zen_db_output($orders_history->fields['comments'])) . '&nbsp;</td>' . "\n" .
echo ' <td class="smallText">' . nl2br(zen_output_string_protected($orders_history->fields['comments'])) . '&nbsp;</td>' . "\n" .
' </tr>' . "\n";
$orders_history->MoveNext();
}
Expand Down
2 changes: 1 addition & 1 deletion admin/packingslip.php
Expand Up @@ -185,7 +185,7 @@
echo ' <tr>' . "\n" .
' <td class="smallText" align="center" valign="top">' . zen_datetime_short($orders_history->fields['date_added']) . '</td>' . "\n";
echo ' <td class="smallText" valign="top">' . $orders_status_array[$orders_history->fields['orders_status_id']] . '</td>' . "\n";
echo ' <td class="smallText" valign="top">' . ($orders_history->fields['comments'] == '' ? TEXT_NONE : nl2br(zen_db_output($orders_history->fields['comments']))) . '&nbsp;</td>' . "\n" .
echo ' <td class="smallText" valign="top">' . ($orders_history->fields['comments'] == '' ? TEXT_NONE : nl2br(zen_output_string_protected($orders_history->fields['comments']))) . '&nbsp;</td>' . "\n" .
' </tr>' . "\n";
$orders_history->MoveNext();
if (ORDER_COMMENTS_PACKING_SLIP == 1 && $count_comments >= 1) {
Expand Down
2 changes: 1 addition & 1 deletion admin/reviews.php
Expand Up @@ -190,7 +190,7 @@
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="main"><b><?php echo ENTRY_REVIEW; ?></b><br><br><?php echo nl2br(zen_db_output(zen_break_string($rInfo->reviews_text, 15))); ?></td>
<td valign="top" class="main"><b><?php echo ENTRY_REVIEW; ?></b><br><br><?php echo nl2br(zen_output_string_protected(zen_break_string($rInfo->reviews_text, 15))); ?></td>
</tr>
</table></td>
</tr>
Expand Down

0 comments on commit 13b6bbf

Please sign in to comment.