Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

question for the coders and team members.


Bushmaster

Recommended Posts

Posted

I came across an addon that want you to find.

[size="2"]if (isset($_POST['products_image']) && tep_not_null($_POST['products_image']) && ($_POST['products_image'] != 'none')) { 
$sql_data_array['products_image'] = tep_db_prepare_input($_POST['products_image']);

}

[/size]

 

What I found was this line.

if (isset($HTTP_POST_VARS['products_image']) && tep_not_null($HTTP_POST_VARS['products_image']) && ($HTTP_POST_VARS['products_image'] != 'none')) {
		$sql_data_array['products_image'] = tep_db_prepare_input($HTTP_POST_VARS['products_image']);
	  }

 

So off to Google I went and found out that $HTTP_POST_VARS was deprecated for $_POST. Will osC break if you switch these when found? And will it matter if both are used?

Posted

Thanks Jack. Do you know if it was security related or just to save 9 key strokes every time you had to type it. :lol:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...