security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Event / Form / Participant.php
index bb16370b55baf2348955c0bb18c6c8827d79bb23..5897aff52bb954058040b74c9a3fca7d9b996686 100644 (file)
@@ -223,7 +223,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
     // @todo eliminate this duplication.
     $this->_contactId = $this->_contactID;
     $this->_eID = CRM_Utils_Request::retrieve('eid', 'Positive', $this);
-    $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
+    $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this);
     $this->assign('context', $this->_context);
 
     if ($this->_contactID) {