Skip to content

Commit 9fd48d6

Browse files
author
Jeremy Kauffman
committed
allow claim id to be directly passed to dmca page
1 parent c65078f commit 9fd48d6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

controller/action/ReportActions.class.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,20 @@ public static function executeDmca()
2424
$values[$field] = $value;
2525
}
2626

27+
if ($_GET['claim_id'] && !$values['identifier']) {
28+
$values['identifier'] = htmlspecialchars($_GET['claim_id']);
29+
}
30+
2731
if (!$errors) {
2832
$values['report_id'] = Encoding::base58Encode(random_bytes(6));
2933
Mailgun::sendDmcaReport($values);
3034
Session::setFlash('success', '<h3>Report Submitted</h3><p>We will respond shortly.</p><p>This ID for this report is <strong>' . $values['report_id'] . '</strong>. Please reference this ID when contacting us regarding this report.</p>');
3135
return Controller::redirect(Request::getRelativeUri(), 303);
3236
}
3337

34-
return ['report/dmca', ['errors' => $errors, 'values' => $values]];
38+
return ['report/dmca', [
39+
'errors' => $errors,
40+
'values' => $values
41+
]];
3542
}
3643
}

0 commit comments

Comments
 (0)