Jump to content

Hack Attempt


Recommended Posts

Anybody can tell me that in v1.3.1.1,

                 if (!is_object($cart))
                      die(Tools::displayError());



in Tax.php, getApplicableTax function, if the $cart is null, it will display "Hack Attempt", what's this purpose to do? because in MassUpdate, it displays "Hack Attempt". After I trace the program, it because when MassUpdate get product properties, it will check the $cart, but the $cart is null, because in back office there is no cart. so the error message ocurred.

When I change the die statement to return false; it worked. So, the team can explain the usage of the code above, what purpose it does? in other occasion.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...