security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Member / Form / Search.php
index 39f338d4115d945b9aac71a67507e45a20af1864..8d26304f3b9e6482d1b8d6635355f6e3d7ab6256 100644 (file)
@@ -92,7 +92,7 @@ class CRM_Member_Form_Search extends CRM_Core_Form_Search {
     $this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean');
     $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE);
     $this->_limit = CRM_Utils_Request::retrieve('limit', 'Positive', $this);
-    $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE, 'search');
+    $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this, FALSE, 'search');
 
     $this->assign("context", $this->_context);