security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Event / Form / Task / Badge.php
index b9ba3977c545f1e1214e78ccacd2b6a0d06c47a2..11ab8cd151383b2668b29394120f35ddfd7ffe2d 100644 (file)
@@ -57,7 +57,7 @@ class CRM_Event_Form_Task_Badge extends CRM_Event_Form_Task {
    * @return void
    */
   public function preProcess() {
-    $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
+    $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this);
     if ($this->_context == 'view') {
       $this->_single = TRUE;