Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: really fix subdomain check to satisfy codeql #845

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

pauldambra
Copy link
Member

@pauldambra pauldambra commented Oct 23, 2023

follow-up to #842 codeql is still unhappy (see https://github.com/PostHog/posthog-js/security/code-scanning/3)

looks like the indexOf check was what is still triggering the alert. given the change we made we can check direct equality instead. Of course I only realised this once I'd merged the previous PR

@github-actions
Copy link

github-actions bot commented Oct 23, 2023

Size Change: -48 B (0%)

Total Size: 725 kB

Filename Size Change
dist/array.full.js 177 kB -12 B (0%)
dist/array.js 118 kB -12 B (0%)
dist/es.js 118 kB -12 B (0%)
dist/module.js 118 kB -12 B (0%)
ℹ️ View Unchanged
Filename Size
dist/recorder-v2.js 95 kB
dist/recorder.js 58.3 kB
dist/surveys.js 39.6 kB

compressed-size-action

@pauldambra pauldambra marked this pull request as ready for review October 23, 2023 09:07
@pauldambra pauldambra merged commit efb68b4 into master Oct 23, 2023
14 checks passed
@pauldambra pauldambra deleted the fix/really-fix-subdomain-check branch October 23, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants