mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
fix ImageComponent embeds due to extensions being mixedcase
This commit is contained in:
1 parent
0b918a748a
commit
c56a109a21
1 file changed
+4
-1
+4
-1
@@ -160,7 +160,10 @@ std::string GetExtension(std::string url) {
|
||||
}
|
||||
|
||||
bool IsURLViewableImage(const std::string &url) {
|
||||
const auto ext = GetExtension(url);
|
||||
std::string lw_url = url;
|
||||
std::transform(lw_url.begin(), lw_url.end(), lw_url.begin(), ::tolower);
|
||||
|
||||
const auto ext = GetExtension(lw_url);
|
||||
static const char *exts[] = { ".jpeg",
|
||||
".jpg",
|
||||
".png", nullptr };
|
||||
|
||||
Reference in new issue
Block a user