    # Joomla redSHOP 1.2 SQL Injection
    # http://packetstormsecurity.com/files/122757/joomlaredshop12-sql.txt

	if(
      isset($_REQUEST['option']) 
      AND $_REQUEST['option'] == "com_redshop" 
      AND isset($_REQUEST['view']) 
      AND $_REQUEST['view'] == "product"
      AND isset($_REQUEST['task']) 
      AND $_REQUEST['task'] == "addtocompare"
      AND isset($_REQUEST['pid'])
    )
    {
      if(!preg_match('/^[1-9][0-9]{0,15}$/',$_REQUEST['pid']))
      {
        $this->add_log('Posted variable '.$key.' matched redShop 1.2 SQL injection pattern in rule with id:'.$rule_id,'standard');
        die(include(JPATH_ADMINISTRATOR.'/components/com_jhackguard/filter_match_error.html'));
      }
    }