Everyone has the right to liberty. Everyone arrested shall be informed of the reasons for the arrest and shall be entitled to a trial within a reasonable length of time or to be released pending trial. This right protects people against arbitrary arrest and detention. Anyone whose arrest or detention is contrary to the rights guaranteed by Article 5 is entitled to compensation. In certain cases linked with protection of law and order, however, deprivation of liberty may be authorised but must uphold the rights secured in the Convention.