security/core#14 Validate "context" inputs
[civicrm-core.git] / CRM / Pledge / Page / Payment.php
index 36fcc526b9b02df4bb48fcc104ad1cedf92386c7..2461c85c8f5e881797540d6c46011f8b974a418f 100644 (file)
@@ -39,7 +39,7 @@ class CRM_Pledge_Page_Payment extends CRM_Core_Page {
    */
   public function run() {
     $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse');
-    $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
+    $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this);
 
     $this->assign('action', $this->_action);
     $this->assign('context', $this->_context);