Jump to content

Possible typo in Tools::getValue(..)


nikoz07

Recommended Posts

Greetings!

I am diving into PrestaShop code and stumbled across this line in the getValue(..) function (line 462 of Tools.php, PS version 1.6):

        if (is_string($ret)) {
            return stripslashes(urldecode(preg_replace('/((\
%5C0+)|(\%00+))/i', '', urlencode($ret))));
        }

Is there some mistake in the first URL encoding - there should be 2 digits, right? Or are we looking for %5C (a backslash) and a number of 0's?

Link to comment
Share on other sites

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