#371 Update file protection condition

@mturalenka Please review 
(The last pull request was closed because of touched unnecessary string formatting by NetBeans)
`parse_url` can return `FALSE`, and generally if we need only `path` we can specify second option with constant `PHP_URL_PATH`