Fixed anti-download controller with PHP < 5.5.