Skip to content
Snippets Groups Projects

fix the issue

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
114 114 * The Request object.
115 115 */
116 116 private function storeReportUriData(ReportingEndpointInterface $reporting_endpoint, array $report, Request $request) {
117 // Provide default values for the 'csp-report' data if the key is missing.
118 $cspReport = isset($report['csp-report']) ? $report['csp-report'] : [
  • 114 114 * The Request object.
    115 115 */
    116 116 private function storeReportUriData(ReportingEndpointInterface $reporting_endpoint, array $report, Request $request) {
    117 // Provide default values for the 'csp-report' data if the key is missing.
    118 $cspReport = isset($report['csp-report']) ? $report['csp-report'] : [
    119 'document-uri' => 'unknown',
    120 // You can add other default values here if needed.
    121 ];
    117 122
    118 123 // Convert data to format expected by Reporting API.
    119 $report = [
    124 $reportData = [
    Please register or sign in to reply
    Loading