security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Event / Page / Tab.php
index 43c898fa9ee8ada49ce5f0d42d3c90ff05f93166..d2ffcb183bbd9e89d065e1cf53063455afe42bb5 100644 (file)
@@ -119,7 +119,7 @@ class CRM_Event_Page_Tab extends CRM_Core_Page {
   }
 
   public function preProcess() {
-    $context = CRM_Utils_Request::retrieve('context', 'String', $this);
+    $context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this);
     $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse');
     $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);