diff --git a/src/commons/Parameters.cpp b/src/commons/Parameters.cpp index 0cf9338d4..db9af883b 100644 --- a/src/commons/Parameters.cpp +++ b/src/commons/Parameters.cpp @@ -2608,7 +2608,7 @@ std::string Parameters::createParameterString(const std::vector>::format(tmpPar); // encode parameters as base64 if it contains whitespaces // whitespaces break parameters in the workflow shell scripts - if (value.find_first_of(" \n\t[]{}^$?|.~!*") != std::string::npos) { + if (value.find_first_of(" \n\t[]{}^$?|.~!*<>&") != std::string::npos) { ss << par[i]->name << " b64:" << base64_encode(value.c_str(), value.size()) << " "; } else { ss << par[i]->name << " " << value << " "; @@ -2617,7 +2617,7 @@ std::string Parameters::createParameterString(const std::vectorvalue); if (value != "") { // see above - if (value.find_first_of(" \n\t[]{}^$?|.~!*") != std::string::npos) { + if (value.find_first_of(" \n\t[]{}^$?|.~!*<>&") != std::string::npos) { ss << par[i]->name << " b64:" << base64_encode(value.c_str(), value.size()) << " "; } else { ss << par[i]->name << " " << value << " "; @@ -2634,7 +2634,7 @@ std::string Parameters::createParameterString(const std::vectorname << " "; std::string value = MultiParam>::format(*((MultiParam> *) par[i]->value)); // see above - if (value.find_first_of(" \n\t[]{}^$?|.~!*") != std::string::npos) { + if (value.find_first_of(" \n\t[]{}^$?|.~!*<>&") != std::string::npos) { ss << par[i]->name << " b64:" << base64_encode(value.c_str(), value.size()) << " "; } else { ss << par[i]->name << " " << value << " ";