diff --git a/src/mergerfs_webui.cpp b/src/mergerfs_webui.cpp index 1175dbaa..f3d4ff01 100644 --- a/src/mergerfs_webui.cpp +++ b/src/mergerfs_webui.cpp @@ -218,7 +218,8 @@ bool _valid_fs_type(const fs::path &path_, const std::string &type_) { - static std::string_view valid_mount_prefixes[] = + static constexpr auto valid_mount_prefixes = + std::array { "/mnt/", "/media/",