security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Event / Page / EventInfo.php
index 905c978160d2cab5140397b75a1f08a0eef0b9dc..7b088ea3b87f3a381bb2b9407271d0dd1b591c62 100644 (file)
@@ -59,7 +59,7 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page {
     }
 
     $action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE);
-    $context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE, 'register');
+    $context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this, FALSE, 'register');
     $this->assign('context', $context);
 
     // Sometimes we want to suppress the Event Full msg