Use filter_var instead of parse_url to validate URLs, since the latter returns true even for invalid URLs, in particular the empty string
Merge pull request #654 from mexon/filter_var

Use filter_var instead of parse_url to validate URLs, since the latter r...