security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Pledge / Form / Search.php
index 65a6027c4de819acbb899ccee62f77012d51bd03..50558aca71d1ea8da8bc44a3950626851f0a4624 100644 (file)
@@ -79,7 +79,7 @@ class CRM_Pledge_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);