Zen Cart Logo
Forums / Bug Reports / [Fixed v1.5.1] Warning: strip_tags() expects at most 2 parameters, coupon_admin.php

[Fixed v1.5.1] Warning: strip_tags() expects at most 2 parameters, coupon_admin.php

Views: 2,039

Results 1 to 3 of 3
18 Sep 2012, 2:55 PM
#1
ray_the_otter avatar

ray_the_otter

Zen Follower

Join Date:
Jul 2010
Posts:
278
Plugin Contributions:
0

[Fixed v1.5.1] Warning: strip_tags() expects at most 2 parameters, coupon_admin.php

I have noticed these today. Don't know if it is my actions or if it is a bug, if so then are the dev team is aware of it etc etc etc.

[18-Sep-2012 12:58:26] PHP Warning: strip_tags() expects at most 2 parameters, 4 given in /home/WEBSPACE/public_html/DIR/ADMIN/coupon_admin.php on line 641

thnaks

19 Sep 2012, 2:22 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: [Fixed v1.5.1] Warning: strip_tags() expects at most 2 parameters, coupon_admin.php

Confirmed.

The fix is to change the parentheses in that line.
The corrected code, from v1.5.1 (and suitable for v1.5.0), is:```
<td><?php echo zen_draw_textarea_field('message', 'soft', '60', '15', htmlspecialchars(strip_tags(($_POST['message_html']=='') ? TEXT_COUPON_ANNOUNCE : stripslashes($_POST['message_html'][B]))[/B], ENT_COMPAT, CHARSET, TRUE[B]))[/B]; ?></td>

20 Jan 2014, 6:21 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,080
Plugin Contributions:
56

Re: [Fixed v1.5.1] Warning: strip_tags() expects at most 2 parameters, coupon_admin.php

Hmm, the file contained in the v1.5.1 download still has the uncorrected version.