X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiCSPReport.php;h=be2da342802ff51d9f343bf409363369c03a1c1b;hb=6b3b05558f727284fad827d1d2bdcb50c057c2e7;hp=f53d2b93c2a86c3386119d67ab6cb54b50fdfe39;hpb=1d78026b1635532b62e22b16f3d7c43c41af0c37;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiCSPReport.php b/includes/api/ApiCSPReport.php index f53d2b93c2..be2da34280 100644 --- a/includes/api/ApiCSPReport.php +++ b/includes/api/ApiCSPReport.php @@ -54,7 +54,7 @@ class ApiCSPReport extends ApiBase { // XXX Is it ok to put untrusted data into log?? 'csp-report' => $report, 'method' => __METHOD__, - 'user_id' => $this->getUser()->getId() || 'logged-out', + 'user_id' => $this->getUser()->getId() ?: 'logged-out', 'user-agent' => $userAgent, 'source' => $this->getParameter( 'source' ), ] );