Skip to content

Commit

Permalink
Merge pull request #14355 from seamuslee001/harden_extern_open
Browse files Browse the repository at this point in the history
Validate queue_id is a positive integer before passing to the BAO
  • Loading branch information
seamuslee001 authored May 29, 2019
2 parents 7b5909f + f3e9be3 commit 80b41f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extern/open.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
require_once '../civicrm.config.php';
require_once 'CRM/Core/Config.php';
require_once 'CRM/Core/Error.php';
require_once 'CRM/Utils/Array.php';
require_once 'CRM/Utils/Type.php';
require_once 'CRM/Utils/Rule.php';
require_once 'CRM/Utils/Request.php';

$config = CRM_Core_Config::singleton();
$queue_id = CRM_Utils_Array::value('q', $_GET);
$queue_id = CRM_Utils_Request::retrieveValue('q', 'Positive', NULL, FALSE, 'GET');
if (!$queue_id) {
echo "Missing input parameters\n";
exit();
Expand Down

0 comments on commit 80b41f5

Please sign in to comment.