security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Activity / Form / Activity.php
index a82cbade69b0b0303205b98b4f1b6760ce2a5f82..5f78cbd9f1be8d4d9bd530c195c6f0c9d453d5d5 100644 (file)
@@ -255,7 +255,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
 
     // Give the context.
     if (!isset($this->_context)) {
-      $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
+      $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this);
       if (CRM_Contact_Form_Search::isSearchContext($this->_context)) {
         $this->_context = 'search';
       }