title: Removing restriction on characters in cart in CodeIgniter
body: <p>I am using the cart library in Codeigniter. I am using this : </p>
  
  <pre><code>$product = array(
    'id'      =&gt; $product_id,
    'qty'     =&gt; $product_qty,
    'price'   =&gt; $product_price,
    'name'    =&gt; $product_name,
    'attr_id' =&gt; $product_attr_id,
    'short_desc'=&gt; $product_short_desc,
    'options' =&gt; array('size_id' =&gt; $product_size_id)
  );
  $this-&gt;cart-&gt;insert($product); 
  </code></pre>
  
  <p>Some products are not being added because it has disallowed characters in name. I want to remove that restriction. I commented this code in <code>my_project/system/libraries</code>: </p>
  
  <pre><code>if ( ! preg_match("/^[".$this-&gt;product_name_rules."]+$/i", $items['name'])) {
      log_message('error', 'An invalid name was submitted as the product name: '.$items['name'].' The name can only contain alpha-numeric characters, dashes, underscores, colons, and spaces');
      return FALSE;
  }
  </code></pre>
  
  <p>But its still not adding to cart. Can someone help me in this ?</p>