Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,102
- Plugin Contributions:
- 56
[Duplicate] coupon_admin.php: strip_tags() expects at most 2 parameters, 4 given
Running Zen Cart v1.5.1 on PHP 5.38. I noticed that I had the following debug-log:
strip_tags() expects at most 2 parameters, 4 given in C:\xampp\htdocs\mystore\myadmin\coupon_admin.php on line 641
which translates to this 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>
It looks like the closing parentheses got misplaced when the htmlspecialchars call was updated; I believe the code should read
<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>