Skip to content

Commit e8d6494

Browse files
committed
Merge pull request #3 from jasonvarga/master
Wrap items in htmlspecialchars
2 parents a0f09ab + 268511f commit e8d6494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message/PurchaseRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function getData()
146146
$itemsHtml .= "<li>{$item['quantity']} x {$item['name']}</li>";
147147
}
148148
$itemsHtml .= '</ul>';
149-
$transaction->addChild('items', $itemsHtml);
149+
$transaction->addChild('items', htmlspecialchars($itemsHtml));
150150
}
151151

152152
if ('IDEAL' === $this->getGateway() && $this->getIssuer()) {

0 commit comments

Comments
 (0)