Skip to content

Commit 7f41b33

Browse files
committed
style(oauth_setup): normalize string quoting in _sanitize_input
* 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.
1 parent 594f03d commit 7f41b33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mcp_atlassian/utils/oauth_setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ def _sanitize_input(user_input: str) -> str:
4141
return user_input
4242
# Remove leading/trailing whitespace and various line endings
4343
# Handle Windows (\r\n), Unix (\n), and Mac (\r) line endings
44-
sanitized = user_input.strip().rstrip('\r\n').strip()
44+
sanitized = user_input.strip().rstrip("\r\n").strip()
4545
return sanitized
4646

47+
4748
class CallbackHandler(http.server.BaseHTTPRequestHandler):
4849
"""HTTP request handler for OAuth callback."""
4950

0 commit comments

Comments
 (0)