[eluser]WanWizard[/eluser]
Code:
class CI_Cart {
// These are the regular expression rules that we use to validate the product ID and product name
var $product_id_rules = '\.a-z0-9_-'; // alpha-numeric, dashes, underscores, or periods
var $product_name_rules = '\.\:\-_ a-z0-9'; // alpha-numeric, dashes, underscores, colons or periods
If you want to accept other characters, you have to modify $this->cart->product_id_rules and $this->cart->product_name_rules after you have loaded the cart library.