astorm / MagentoTarToConnect

A small shell script to automatically package tar archives into Magento's Connect 2.0 format.
80 stars 24 forks source link

Fix Escape and Ampersand bug With addChild Method #16

Closed rgabruel closed 10 years ago

rgabruel commented 10 years ago

The class SimpleXMLElement addChild method doesn't protect against adding values with ampersand and escape characters to an XML node causing malforming XML. In order to achieve that the child node need to be added first and then assign the value.

kojiromike commented 10 years ago

This should fix the regression of #10 caused by #15.