Skip to content

Commit

Permalink
When restoring contents, generate a new $cartID value
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldpdl committed Dec 12, 2008
1 parent ad8dab7 commit 826437a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions catalog/includes/classes/shopping_cart.php
Expand Up @@ -56,6 +56,9 @@ function restore_contents() {
}

$this->cleanup();

// assign a temporary unique ID to the order contents to prevent hack attempts during the checkout procedure
$this->cartID = $this->generate_cart_id();
}

function reset($reset_database = false) {
Expand Down

0 comments on commit 826437a

Please sign in to comment.