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

Fixes #12101: Escaping issue in Users Technique Parameter #1875

Conversation

VinceMacBuche
Copy link
Member

Copy link
Member

@ncharles ncharles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't you missing the dsc part of the implementation ?

final case class DoubleQuote(value: String) extends BundleParam { def quote = "\""+value+"\"" }
final case class DoubleQuote(value: String) extends BundleParam {
val escapedValue = ParameterEntry.escapeString(value, AgentType.CfeCommunity)
def quote = "\""+escapedValue+"\""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be done for DSC also ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be done in DSC plugin

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit d8f7492 into Normation:branches/rudder/4.3 Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants