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

Nil #10312

Closed
wants to merge 2 commits into from
Closed

Nil #10312

wants to merge 2 commits into from

Conversation

bhaskarvilles
Copy link
Contributor

Related Issues

Proposed Changes

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

Bhaskar and others added 2 commits January 15, 2023 12:30
…p track of whether the current line is in a template or generated section, instead of using a separate "state" variable. It also uses the filepath.Walk function instead of filepath.WalkDir and it combines the file reading and checking for file extension into one step. The inTemplate, inGen and templateLines variables are initialized before the for loop, so that they can be used within the loop. The function also directly write the modified contents to the file using ioutil.WriteFile at the end of the loop, instead of using a separate rewrite variable to check if the file needs to be written. This version is more compact, it's using less variables and it's more readable.

- The unsanitized input fix is added to check if the "address" form value is a valid address before creating a new address object from it. This prevents potential security issues where an attacker can use an invalid address to exploit the system.
@bhaskarvilles bhaskarvilles requested a review from a team as a code owner February 18, 2023 07:49
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.

1 participant