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

replace base64 regex string #1919

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

salba360496
Copy link
Contributor

Update Base64 Regex Pattern for Improved Stability: This pull request addresses a critical issue where the application crashes in release mode during base64 string validation. By modifying the Base64 regex pattern from
r'^(?:[A-Za-z0-9+/]{4})(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$'
to
r'^(?:[A-Za-z0-9+/][A-Za-z0-9+/][A-Za-z0-9+/][A-Za-z0-9+/])
(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$',
I ensure a more robust validation process. This adjustment prevents the application from crashing while performing base64 string validation in release mode, enhancing overall stability. Make sure to review and approve this change promptly to avoid any further disruptions in production.

@singerdmx singerdmx merged commit 082cea9 into singerdmx:master Jun 14, 2024
2 checks passed
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.

2 participants