This is a discussion on Wishlist 2.0 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; For 3.5d users. If you have register globals off, which is a good thing, then you will need to fix ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| For 3.5d users. If you have register globals off, which is a good thing, then you will need to fix the following code in order for emails to friends from your wishlist.php page to be sent. The problem: /catalog/wishlist.php email sending script requires register globals on as the friend array and email array passed in $_POST are currently coded for register globals. The fix: The following code secures the $email and $friend arrays from $_POST without register globals: 1. Look for the following code: CODE //Check each posted name => email for errors. $j = 0; foreach($_POST['friend'] as $friendx) { if($j == 0) { 2. Replace it with the following code: CODE //Check each posted name => email for errors. $j = 0; foreach($_POST['friend'] as $friendx) { // secure post $friendx = strip_tags($friendx); if($j == 0) { $friend = $_POST['friend']; // secure posts $x = 0; foreach ($friend as $value) { $friend[$x] = strip_tags($value); $x++; } $email = $_POST['email']; $x = 0; foreach ($email as $value) { $email[$x] = strip_tags($value); $x++; } More...
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wishlist 3.5d | kingsland | osCMax v2 Customization/Mods | 8 | 07-15-2007 08:12 PM |
| Wishlist 2.0 | michael_s | New osCommerce Contributions | 0 | 04-15-2007 09:22 PM |
| Wishlist 2.0 | michael_s | New osCommerce Contributions | 0 | 02-12-2007 06:00 AM |
| Wishlist issues - sent email doesnt include wishlist links | slothy | osCMax v2 Installation issues | 3 | 08-31-2005 11:53 AM |
| Wishlist-2.0.1 | glynn | osCMax v1.7 General Mods Discussion | 16 | 03-22-2005 12:03 PM |