security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / PCP / Form / Campaign.php
index 2618f6193df0e2589f98d6f079635e648030a424..4bc49e9424be1ae2f5da11485921b89e46d54ce9 100644 (file)
@@ -50,7 +50,7 @@ class CRM_PCP_Form_Campaign extends CRM_Core_Form {
     $this->_component = CRM_Utils_Request::retrieve('component', 'String', $this);
     $this->assign('component', $this->_component);
 
-    $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
+    $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this);
     $this->assign('context', $this->_context);
 
     $this->_pageId = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE);