Skip to content

Conversation

@njoshi-conga
Copy link

Description

  • Add _sanitize_input to trim leading/trailing whitespace and remove Windows/Unix/Mac line endings.
  • Use _sanitize_input in _prompt_for_input for both env-default and manual input branches.
  • Prevents accidental CRLFs or trailing/leading whitespace from corrupting values (redirect URIs, client IDs, secrets) during the OAuth setup wizard.

I faced an issue while using oauth config script on windows machine, where it kept adding \r\n as part of parameters passed from console. this

Fixes: #

Changes

Testing

  • Unit tests added/updated
  • Integration tests passed
  • Manual checks performed: [briefly describe]

Checklist

  • Code follows project style guidelines (linting passes).
  • Tests added/updated for changes.
  • All tests pass locally.
  • Documentation updated (if needed).

* Add `_sanitize_input` to trim leading/trailing whitespace and remove Windows/Unix/Mac line endings.
* Use `_sanitize_input` in `_prompt_for_input` for both env-default and manual input branches.
* Prevents accidental CRLFs or trailing/leading whitespace from corrupting values (redirect URIs, client IDs, secrets) during the OAuth setup wizard.
* Replace single quotes with double quotes in `rstrip("\r\n")` for consistent quoting style.
* Add minor formatting cleanup (extra blank line) for readability.
* No functional changes.
nszceta added a commit to nszceta/mcp-atlassian that referenced this pull request Oct 16, 2025
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity for 14 days. It will be closed if no further activity occurs. Please leave a comment or remove the 'stale' label if you believe this PR is still relevant. Thank you for your contributions!

@github-actions github-actions bot added the stale label Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant