Running Zen Cart v1.5.1 on PHP 5.38. I noticed that I had the following debug-log:
which translates to this codeCode:strip_tags() expects at most 2 parameters, 4 given in C:\xampp\htdocs\mystore\myadmin\coupon_admin.php on line 641
It looks like the closing parentheses got misplaced when the htmlspecialchars call was updated; I believe the code should readCode:<tr> <td valign="top" class="main"><?php echo TEXT_MESSAGE; ?> </td> <td><?php echo zen_draw_textarea_field('message', 'soft', '60', '15', htmlspecialchars(strip_tags(($_POST['message_html']=='') ? TEXT_COUPON_ANNOUNCE : stripslashes($_POST['message_html']), ENT_COMPAT, CHARSET, TRUE))); ?></td> </tr>
Code:<tr> <td valign="top" class="main"><?php echo TEXT_MESSAGE; ?> </td> <td><?php echo zen_draw_textarea_field('message', 'soft', '60', '15', htmlspecialchars(strip_tags(($_POST['message_html']=='') ? TEXT_COUPON_ANNOUNCE : stripslashes($_POST['message_html'])), ENT_COMPAT, CHARSET, TRUE)); ?></td> </tr>


Reply With Quote

