📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Potential fix for pull request finding 'CodeQL / Loop bound injection'
Andrii Romasiun800b1c0cc00d
diff --git a/backend/apps/cloud/src/project/project.controller.ts b/backend/apps/cloud/src/project/project.controller.tsindex 29273bf6d..6e54a98ba 100644--- a/backend/apps/cloud/src/project/project.controller.ts+++ b/backend/apps/cloud/src/project/project.controller.ts@@ -1799,9 +1799,10 @@ export class ProjectController {}if (projectDTO.countryBlacklist !== undefined) {- project.countryBlacklist = projectDTO.countryBlacklist- ? (_map(projectDTO.countryBlacklist, _trim) as string[])- : null+ project.countryBlacklist =+ projectDTO.countryBlacklist && Array.isArray(projectDTO.countryBlacklist)+ ? (_map(projectDTO.countryBlacklist, _trim) as string[])+ : null}if (projectDTO.botsProtectionLevel) {