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

FilenameTemplate: Fix potential crash when a variable's value contains \ or $ #209

Merged
merged 1 commit into from
Dec 27, 2022

Conversation

chenxiaolong
Copy link
Owner

Matcher.appendReplacement() treats \ and $ specially, so we need to use Matcher.quoteReplacement() when passing in arbitrary strings.

Fixes: #207

…s \ or $

Matcher.appendReplacement() treats \ and $ specially, so we need to
use Matcher.quoteReplacement() when passing in arbitrary strings.

Fixes: #207

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong self-assigned this Dec 27, 2022
@chenxiaolong chenxiaolong merged commit e92260c into master Dec 27, 2022
@chenxiaolong chenxiaolong deleted the replacement branch December 27, 2022 21:23
chenxiaolong added a commit that referenced this pull request Dec 27, 2022
Signed-off-by: Andrew Gunnerson <[email protected]>
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.

Failed to record call
1 participant