also explode tags on transload input

This commit is contained in:
Shish 2016-07-30 22:45:44 +01:00
parent 7be951b271
commit b81e8a2db8

View File

@ -178,7 +178,7 @@ class Upload extends Extension {
} }
else if(!empty($_GET['url'])) { else if(!empty($_GET['url'])) {
$url = $_GET['url']; $url = $_GET['url'];
$tags = isset($_GET['tags']) ? $_GET['tags'] : 'tagme'; $tags = isset($_GET['tags']) ? Tag::explode($_GET['tags']) : 'tagme';
$source = isset($_GET['source']) ? $_GET['source'] : $url; $source = isset($_GET['source']) ? $_GET['source'] : $url;
$ok = $this->try_transload($url, $tags, $source, $image_id); $ok = $this->try_transload($url, $tags, $source, $image_id);
$this->theme->display_upload_status($page, $ok); $this->theme->display_upload_status($page, $ok);