/** * Validate an encryption key * * @param string $key * @return unknown */ public function validateKey($key) { if (false !== strpos($key, '<![CDATA[') || false !== strpos($key, ']]>') || preg_match('/\\s/s', $key)) { throw new Exception(Mage::helper('enterprise_pci')->__('Encryption key format is invalid.')); } return parent::validateKey($key); }
/** * Validate an encryption key * * @param string $key * @return unknown */ public function validateKey($key) { if (false !== strpos($key, '<![CDATA[') || false !== strpos($key, ']]>') || preg_match('/\\s/s', $key)) { } return parent::validateKey($key); }