security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Contact / Form / GroupContact.php
index fcbc9fc6816aa4c26c5c9a062bbc28b919a15d5d..c8114ec036eabc372912cf088bed0958c89470c6 100644 (file)
@@ -70,7 +70,7 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form {
   public function preProcess() {
     $this->_contactId = $this->get('contactId');
     $this->_groupContactId = $this->get('groupContactId');
-    $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
+    $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this);
   }
 
   /**