Skip to content

fix: ensure ALLOWED_URI_REGEXP is reset#790

Merged
cure53 merged 1 commit intocure53:mainfrom
mukilane:main
Apr 13, 2023
Merged

fix: ensure ALLOWED_URI_REGEXP is reset#790
cure53 merged 1 commit intocure53:mainfrom
mukilane:main

Conversation

@mukilane
Copy link
Copy Markdown
Contributor

@mukilane mukilane commented Apr 13, 2023

Summary

The value of ALLOWED_URI_REGEXP is persisted between santize calls without being properly reset.
This pull request fixes it by resetting IS_ALLOWED_URI to its default value instead of its previous value if ALLOWED_URI_REGEXP is not sent

Background & Context

At 490c2ef, the IS_ALLOWED_URI was set without properly resetting it for subsequent sanitize calls.

At 490c2ef, the `ALLOWED_URI_REGEXP` was set without properly resetting it for subsequent sanitize calls.
@cure53
Copy link
Copy Markdown
Owner

cure53 commented Apr 13, 2023

Oh, nice find, thanks!

@cure53 cure53 merged commit 7fa8b97 into cure53:main Apr 13, 2023
@mukilane
Copy link
Copy Markdown
Contributor Author

Thanks for the quick merge, @cure53 !

Do you happen to have a release date for this change ?

@cure53
Copy link
Copy Markdown
Owner

cure53 commented Apr 13, 2023

Soon. Once I am back from vaycay 😸

@cure53
Copy link
Copy Markdown
Owner

cure53 commented Apr 14, 2023

Release is out

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