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

Escape vlan_name before building regex string #1546

Merged
merged 1 commit into from
Jan 23, 2022

Conversation

icovada
Copy link
Contributor

@icovada icovada commented Jan 23, 2022

Sanitise input before building the regex with it

Current code fails when vlan_name begins with a regex special character such as "*"

@ktbyers ktbyers merged commit 1e8a049 into napalm-automation:develop Jan 23, 2022
Kircheneer pushed a commit to Kircheneer/napalm that referenced this pull request Feb 11, 2022
mirceaulinic pushed a commit that referenced this pull request Feb 12, 2022
Co-authored-by: icovada <ftabbo@gmail.com>
mirceaulinic pushed a commit to dkaplan1/napalm that referenced this pull request Feb 12, 2022
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