Commit 6545a63e authored by Laurent Montel's avatar Laurent Montel 😁

Protect slash.

parent 7d0d482a
require "variables";
require "imap4flags";
#SCRIPTNAME: Script part 0
if header :is "Sender" "owner-ietf-mta-filters@example.org"
{
set "MyFlags" "\\Flagged $Work";
# Message will have both "\Flagged" and $Work flags
keep :flags "${MyFlags}";
}
set "MyFlags" "\\Flagged $Work";
# Message will have both "\Flagged" and $Work flags
keep :flags [ "${MyFlags}" ];
}
\ No newline at end of file
......@@ -99,7 +99,7 @@ bool SieveActionSetVariable::setParamWidgetValue(const QDomElement &element, QWi
const QString variableTagName = variableElement.tagName();
if (variableTagName == QLatin1String("str")) {
QLineEdit *variable = w->findChild<QLineEdit *>(QStringLiteral("variable"));
variable->setText(variableElement.text());
variable->setText(AutoCreateScriptUtil::protectSlash(variableElement.text()));
}
} else {
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment