Skip to content
Snippets Groups Projects
Commit b1e0025d authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Fix rule names wrapped in quotes (final quote was not correctly removed)

parent 3c5f6593
Branches
Tags
No related merge requests found
......@@ -180,8 +180,8 @@ class ShippingRule_Advanced extends ShippingRule {
// Special-case the name assignment, where we don't want to interpret the value as an arithmetic expression!
if (preg_match('/^\s*(name)\s*=\s*"?(.*)"?\s*$/i', $rulepart, $matches)) {
$this->handleAssignment ($matches[1], $matches[2], $rulepart);
if (preg_match('/^\s*(name)\s*=\s*(["\']?)(.*)\2\s*$/i', $rulepart, $matches)) {
$this->handleAssignment ($matches[1], $matches[3], $rulepart);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment