bulk_add_csv: Run Tag::explode() on the tags before passing them to handlers

Fixes #575
This commit is contained in:
John Brooks 2017-04-23 02:17:49 +00:00
parent dc3508560a
commit f934baa207

View file

@ -126,7 +126,7 @@ class BulkAddCSV extends Extension {
$list .= "<br>".html_escape("$shortpath (".str_replace(" ", ", ", $tags).")... ");
if (file_exists($csvdata[0]) && is_file($csvdata[0])) {
try{
$this->add_image($fullpath, $pathinfo["basename"], $tags, $source, $rating, $thumbfile);
$this->add_image($fullpath, $pathinfo["basename"], Tag::explode($tags), $source, $rating, $thumbfile);
$list .= "ok\n";
}
catch(Exception $ex) {