Commit 7f87932a authored by Dietmar Maurer's avatar Dietmar Maurer

allow to upload files with spaces in filename

parent ef8fbc64
......@@ -647,7 +647,7 @@ sub parse_content_disposition {
if ($v =~ m/^\s*name\s*=\s*(\S+?)\s*$/o) {
$name = $1;
$name =~ s/^"(.*)"$/$1/;
} elsif ($v =~ m/^\s*filename\s*=\s*(\S+?)\s*$/o) {
} elsif ($v =~ m/^\s*filename\s*=\s*(.+?)\s*$/o) {
$filename = $1;
$filename =~ s/^"(.*)"$/$1/;
}
......
......@@ -2,6 +2,8 @@ pve-manager (3.0-19) unstable; urgency=low
* updated Chinese translation
* allow to upload files with spaces in filename (replace with '_')
-- Proxmox Support Team <support@proxmox.com> Wed, 22 May 2013 06:04:49 +0200
pve-manager (3.0-18) unstable; urgency=low
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment