diff --git a/src/api/api.cpp b/src/api/api.cpp index 8ee77a27..8b3c4c73 100644 --- a/src/api/api.cpp +++ b/src/api/api.cpp @@ -275,8 +275,10 @@ BOSS_API unsigned int boss_load_lists (boss_db db, const char * const masterlist if (userlistPath != NULL) { try { - YAML::Node tempNode = YAML::LoadFile(userlistPath); - userTemp = tempNode["plugins"].as< std::list >(); + if (boost::algorithm::iends_with(userlistPath, ".yaml")) { + YAML::Node tempNode = YAML::LoadFile(userlistPath); + userTemp = tempNode["plugins"].as< std::list >(); + } } catch (YAML::Exception& e) { extMessageStr = e.what();