/** * @see BBCodeParser::isValidTagAttribute() */ protected function isValidTagAttribute($tagAttributes, $definedTagAttribute) { if (!parent::isValidTagAttribute($tagAttributes, $definedTagAttribute)) { return false; } // check for cached codes if (isset($tagAttributes[$definedTagAttribute['attributeNo']]) && preg_match('/@@[a-f0-9]{40}@@/', $tagAttributes[$definedTagAttribute['attributeNo']])) { return false; } return true; }