]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: storage content: transform detected compression extension to lower-case
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Sep 2023 14:58:58 +0000 (16:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Sep 2023 14:59:00 +0000 (16:59 +0200)
otherwise the form will be invalid if a uppercase one comes in.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/DownloadUrlToStorage.js

index 335d6aa6aa871b37d8fc61f07bc1b8d337f97ffe..5523a1523b6b2df4820c1436550626c01aac4263 100644 (file)
@@ -87,7 +87,7 @@ Ext.define('PVE.window.DownloadUrlToStorage', {
                        const matches = filename.match(/^(.+)\.(gz|lzo|zst)$/i);
                        if (matches) {
                            filename = matches[1];
-                           compression = matches[2];
+                           compression = matches[2].toLowerCase();
                        }
                    }