Skip to content

Update rest_framework.py #9472

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

Closed
wants to merge 1 commit into from
Closed

Update rest_framework.py #9472

wants to merge 1 commit into from

Conversation

Sohail342
Copy link

Two main Enhancements:

  1. Regex Precompilation: Compile regular expressions outside of functions if they are used multiple times to avoid recompilation.

  2. Security Enhancements: Ensured proper escaping and safe usage of 'mark_safe'.

Note: Before submitting a code change, please review our contributing guidelines.

Description

Please describe your pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue. When linking to an issue, please use refs #... in the description of the pull request.

Two main Enhancements:

1. Regex Precompilation:
Compile regular expressions outside of functions if they are used multiple times to avoid recompilation.

2. Security Enhancements:
Ensured proper escaping and safe usage of 'mark_safe'.
@Sohail342 Sohail342 closed this Jul 16, 2024
@Sohail342 Sohail342 deleted the patch-1 branch July 16, 2024 11:15
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