security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Member / Form / MembershipView.php
index 9d656c52ddd3b95af5664202235d39e6fe3def46..9e3d9784db02e511980e6347dcf2378dd8f17f77 100644 (file)
@@ -166,7 +166,7 @@ class CRM_Member_Form_MembershipView extends CRM_Core_Form {
     $this->contactID = CRM_Utils_Request::retrieve('cid', 'Positive', $this);
 
     // Make sure context is assigned to template for condition where we come here view civicrm/membership/view
-    $context = CRM_Utils_Request::retrieve('context', 'String', $this);
+    $context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this);
     $this->assign('context', $context);
 
     if ($this->membershipID) {