security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Profile / Form / Edit.php
index c01a868c0649259bb9f180ad259cf5d052ee4f5c..ada0354e0adca562cfc6881e96ca8331df0c7941 100644 (file)
@@ -62,7 +62,7 @@ class CRM_Profile_Form_Edit extends CRM_Profile_Form {
     $this->assign('onPopupClose', $this->_onPopupClose);
 
     //set the context for the profile
-    $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
+    $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this);
 
     //set the block no
     $this->_blockNo = CRM_Utils_Request::retrieve('blockNo', 'String', $this);