-
Notifications
You must be signed in to change notification settings - Fork 224
CVE-2023-42282 #138
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
CVE-2023-42282 #138
Changes from 3 commits
f668b59
10b0e2f
e396dfd
a395cff
0b9a13d
a1fea99
990382e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| node_modules/ | ||
| npm-debug.log | ||
| # Jetbrains IDE | ||
| .idea/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -311,8 +311,8 @@ ip.isEqual = function (a, b) { | |
| }; | ||
|
|
||
| ip.isPrivate = function (addr) { | ||
| return /^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i | ||
| .test(addr) | ||
| return /^0x7f/i.test(addr) | ||
|
||
| || /^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) | ||
| || /^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) | ||
| || /^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i | ||
| .test(addr) | ||
|
|
@@ -331,6 +331,7 @@ ip.isPublic = function (addr) { | |
| ip.isLoopback = function (addr) { | ||
| return /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/ | ||
| .test(addr) | ||
| || /^0x7f/i.test(addr) | ||
| || /^fe80::1$/.test(addr) | ||
| || /^::1$/.test(addr) | ||
| || /^::$/.test(addr); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be removed, we don't want to pollute repo with opinionated files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does exactly what you mentioned: it prevents the repo from being polluted with opinionated files by adding them into
.gitignoreThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As no other IDE's files are listed here, adding a single one can be seen as opinionated. This addition makes sense, just not without the inclusion of other IDE's config dirs - and definately not as part of this merge request.
Developers can just as easily add the entry/entries corresponding to their editor of choice to the local .git/config file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see your point, yes that makes more sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because a lot of people don't realize this and might find the info helpful:
These kinds of things can be placed in a .gitignore in a parent directory, such as (typically) your home directory. (If you're a macOS user, you probably want a .gitignore file in your home directory with an entry for .DS_Store.)