How to revert and apply a Magento security patch

How to revert and apply a Magento security patch

Recently Magento released a Magento Security Patch patch for all Magento sites 1.6 and above. However, the next day another critical patch was released for 1.9 and developers were advised to revert the original patch and apply the new/updated patch.

Initially I thought this would be tricky but it was actually quite simple which is why I thought I would share this bit of information.

All you needed to do was download the 2 patches and run the first patch with “-R” to revert the patch and then run the second Magento Apply and Revert Patches.

So for example I renamed the original patch as “PATCH_1.sh” and the updated patch as “PATCH_2.sh” I would run the following from the terminal in the root of the Magento site:

sh PATCH_1.sh - R
sh PATCH_2.sh
Tags:

1 ResponseSubscibe to the Comments FeedAdd Comment

  1. Japs wrote on

    Great Read! I am impressed on how you make your article easy to understand. I’ll come back for more :D

Leave a Reply

css.php