It is Hudood ordinance and it is an amendment to Pakistani legal framework to implement shariah punishments for offenses instead of the old British penal code.
The controversy is that in a country like Pakistan where judges can be bought - those with enough money would buy judges (its remarkably easy to do) and over turn rape cases) and claim them to be consensual. The accuser could then be open to being charged for having extra marital sex - which is a criminal offence in Islam.
As with many things in Pakistan it was an attempt to put Islamic icing on a cake which is stale. Our legal system is corrupt right from the core, much like many facets of officialdom in our society. However you try to dress up that legal system - with the judges and lawyers we have, it's still going to stink.
Many in India have this idea that Pakistan is controlled by the military and everything else is a shop front. This is an idea supported by elements within our own media and political system. The unfortunate truth is there is no hidden hand. The military enjoys such widespread and avid support in our society because it is by far the most professional government institution we have. It will undoubtedly have its flaws but the rest of officialdom are so inept and corrupt; they pale in comparison.
In this setup they allow corrupt money to dictate everything and blame thier failures on Islamic law, the parliamentary system, the hidden hand, foreign interference - you name it - anything other than looking in the mirror.