Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to ignore elements that should be excluded #4

Closed
agoel96 opened this issue Nov 24, 2010 · 0 comments
Closed

Fix to ignore elements that should be excluded #4

agoel96 opened this issue Nov 24, 2010 · 0 comments
Assignees

Comments

@agoel96
Copy link

agoel96 commented Nov 24, 2010

There's an issue in the fc_hash_html() function to not honor the cart_excludes. For example, "cart" value should not be hashed along with a number of other values defined in the array $cart_excludes. However, this function does check the name/value pairs against the array.

If you add the following code at LINE 221, this will fix the problem.

// Skip the cart excludes
if (in_array($prefix.$name[2], self::$cart_excludes) || in_array($prefix.$name[2], self::$cart_excludes_prefixes)) {
self::$log[] = 'Skipping the reserved parameter or prefix "'.$prefix.$name[2].'" = '.$value[2];
continue;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants