osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Wishlist 2.0

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 10-09-2007, 08:30 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,314
Thanks: 67
Thanked 321 Times in 304 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Wishlist 2.0

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


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 12:21 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax