Skip to content

Commit

Permalink
Merge pull request #47 from onedesign/bugfix/100-char-limit
Browse files Browse the repository at this point in the history
Bugfix/100 char limit
  • Loading branch information
mkornatz authored Jul 24, 2018
2 parents 0962365 + 88639c4 commit 63b61da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/OneShipStation_XmlService.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public function customOrderFields(\SimpleXMLElement $order_xml, Commerce_OrderMo
foreach ($customFieldCallbacks as $callback) {
if (is_callable($callback)) {
$value = $callback($order);
$order_xml->addChild($fieldName, htmlspecialchars($value));
$order_xml->addChild($fieldName, substr(htmlspecialchars($value), 0, 100));
}
}
}
Expand Down

0 comments on commit 63b61da

Please sign in to comment.