#371 Update file protection condition

@mturalenka Please review 
(The last pull request was closed because of touched unnecessary string formatting by NetBeans)
Added with a condition if parse_url return false. But PHP_URL_PATH wasn`t used, such as needed not only "path".