Merge pull request #57 from systopia/issue/44

Add qid to valid parameter list for opening tracking (#44)
This commit is contained in:
Björn Endres 2022-05-25 08:51:21 +02:00 committed by GitHub
commit 5eb314df89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@ if (!$target_open) civiproxy_http_error("Feature disabled", 405);
civiproxy_security_check('open');
// basic restraints
$valid_parameters = array( 'q' => 'int' );
$valid_parameters = [
'q' => 'int',
'qid' => 'int',
];
$parameters = civiproxy_get_parameters($valid_parameters);
civiproxy_redirect($target_open, $parameters);