-
Notifications
You must be signed in to change notification settings - Fork 464
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
[WFCORE-2592] Special characters escaping in service.bat #4574
Conversation
The purpose of this PR is to enable escaping of special characters, which are part of windows command line syntax, for jbosspass argument.
|
Core - Full Integration Build 10562 outcome was FAILURE using a merge of c86d2a7 Failed tests
|
There has been no activity on this PR for 45 days. It will be auto-closed after 90 days. |
|
||
for %%C in (^^^^ ^^^( ^^^) ^^^> ^^^< ^^^& ^^^|) do ( | ||
if not "!JBOSSPASS:%%C=!"=="!JBOSSPASS!" set IS_SANITIZED=true | ||
set "JBOSSPASS=!JBOSSPASS:%%C=^^%%C!" | ||
) | ||
if not "!IS_SANITIZED!" == "true" ( | ||
for %%C in (^^ ^( ^) ^> ^< ^& ^|) do ( | ||
set "JBOSSPASS=!JBOSSPASS:%%C=^^^%%C!" | ||
) | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't say I understand this, but I trust you :)
https://issues.redhat.com/browse/WFCORE-2592