Skip to content

Normalize repeated execpolicy path separators#381

Open
GreyforgeLabs wants to merge 1 commit into
CortexLM:mainfrom
GreyforgeLabs:fix-execpolicy-slash-normalization
Open

Normalize repeated execpolicy path separators#381
GreyforgeLabs wants to merge 1 commit into
CortexLM:mainfrom
GreyforgeLabs:fix-execpolicy-slash-normalization

Conversation

@GreyforgeLabs
Copy link
Copy Markdown

Summary

  • Collapse repeated forward slashes while normalizing execpolicy paths
  • Normalize backslashes during the same pass before sensitive path checks
  • Add regression tests for triple-slash sensitive paths and repeated separators

Validation

  • cargo fmt --package cortex-execpolicy --check
  • git diff --check
  • cargo test -p cortex-execpolicy
  • cargo check -p cortex-execpolicy

Addresses PlatformNetwork/bounty-challenge#53132.

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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