update_rss_feed: fix BLACKLISTED_TAGS not working properly, simplify tag-related code

This commit is contained in:
Andrew Dolgov
2020-12-20 23:12:45 +03:00
parent 5f733604f0
commit f59c567831
3 changed files with 17 additions and 32 deletions

View File

@@ -218,7 +218,7 @@ class Article extends Handler_Protected {
$id = clean($_REQUEST["id"]);
$tags_str = clean($_REQUEST["tags_str"]);
$tags = array_unique(trim_array(explode(",", $tags_str)));
$tags = array_unique(array_map('trim', explode(",", $tags_str)));
$this->pdo->beginTransaction();