allow to upload files with spaces in filename

This commit is contained in:
Dietmar Maurer 2013-05-22 06:44:04 +02:00
parent ef8fbc6447
commit 7f87932adb
2 changed files with 3 additions and 1 deletions

View File

@ -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/;
}

View File

@ -1,6 +1,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