security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Campaign / Form / Survey / Main.php
index 57974875e1d9f1e7591c6fba36c93d9bf7523fa8..c8e4123051e0de27ec16a9e4f6042a70975a7b6b 100644 (file)
@@ -60,7 +60,7 @@ class CRM_Campaign_Form_Survey_Main extends CRM_Campaign_Form_Survey {
   public function preProcess() {
     parent::preProcess();
 
-    $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
+    $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this);
 
     $this->assign('context', $this->_context);