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

Fix handling of single quotes in shell commands #1019

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 6, 2024

  1. Fix handling of single quotes in shell commands

    Previously, if a command in the `bigip_command` resource contained single
    quotes, the constructed shell command would have unbalanced quotes,
    leading to syntax errors and command execution failures. This commit fixes
    the issue by escaping single quotes within the commands before wrapping
    them in single quotes. This ensures that all commands are properly
    formatted and executed, even if they contain single quotes.
    
    - Escape single quotes in commands before constructing the shell command
    - Prevents syntax errors due to unbalanced quotes
    - Enhances security by mitigating potential command injection risks
    alex-harvey-z3q committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    68f9759 View commit details
    Browse the repository at this point in the history