Skip to content

Commit

Permalink
Do not evaluate $_REQUEST superglobal directly in CiviSEPA dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschuppe committed Aug 22, 2024
1 parent 165af16 commit 0d1de98
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions CRM/Sepa/Page/DashBoard.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,8 @@ class CRM_Sepa_Page_DashBoard extends CRM_Core_Page {
function run() {
CRM_Utils_System::setTitle(ts('CiviSEPA Dashboard', array('domain' => 'org.project60.sepa')));
// get requested group status
if (isset($_REQUEST['status'])) {
if ($_REQUEST['status'] != 'open' && $_REQUEST['status'] != 'closed') {
$status = 'open';
} else {
$status = $_REQUEST['status'];
}
} else {
$status = CRM_Utils_Request::retrieve('status', 'String');
if ('open' !== $status && 'closed' !== $status) {
$status = 'open';
}

Expand Down

0 comments on commit 0d1de98

Please sign in to comment.