Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP 5 No Register Globals


Recommended Posts

This is a mod that allows a OSC cart running on PHP5 to have the register_globals option disabled.

Tried to keep this as with other mods I have done, as far from editing original osc code as possible.

Only one minor tweak to a general osc function is required. If you use it or have a bug or question then do so here. Most of the documentation and requirements are in zip file.

Link to comment
Share on other sites

As a side note, this mod should also work for Osc shops running on PHP version >= 4.1.0 where the predefined $_SESSION super global is supported. In this scenario the register_long_arrays ini setting doesn't apply since the HTTP_*_VARS are available by default in >PHP 4.1.0.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...