1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/13904] Improve test coverage of remote upload type

PHPBB3-13904
This commit is contained in:
Marc Alexander
2015-09-07 11:35:12 +02:00
parent 1b9e6e352f
commit 82bca32015
2 changed files with 77 additions and 5 deletions

View File

@@ -84,11 +84,6 @@ class remote extends base
return $this->factory->get('filespec')->set_error($this->language->lang($this->upload->error_prefix . 'URL_INVALID'));
}
if (empty($match[2]))
{
return $this->factory->get('filespec')->set_error($this->language->lang($this->upload->error_prefix . 'URL_INVALID'));
}
$url = parse_url($upload_url);
$host = $url['host'];