forward port of 0 file size upgrade fix
This commit is contained in:
parent
806e47e51c
commit
54f0338696
3 changed files with 3 additions and 1 deletions
|
|
@ -32,6 +32,7 @@
|
|||
- fix [ 1410127 ] User profile fields do not display value \'0\'
|
||||
- fix [ 1427600 ] Prevent Proxy caching on - URL issue
|
||||
- fix [ 1413032 ] AdminBar text unreadable in some cases. w/ fix
|
||||
- fix [ 1428117 ] Uploading files with 0 size
|
||||
|
||||
6.8.5
|
||||
- fix [ 1396957 ] Insufficient privileges check on the DataForm
|
||||
|
|
|
|||
|
|
@ -545,7 +545,7 @@ sub www_editEvent {
|
|||
},
|
||||
-defaultValue => "and"
|
||||
-label => $i18n->get("add/edit event operator"),
|
||||
-label => $i18n->get("add/edit event operator description"),
|
||||
-hoverHelp => $i18n->get("add/edit event operator description"),
|
||||
);
|
||||
|
||||
$f->selectBox(
|
||||
|
|
|
|||
|
|
@ -201,6 +201,7 @@ sub addFileFromFormPost {
|
|||
return $filename if $attachmentCount > $attachmentLimit;
|
||||
my $tempFilename = $upload->filename();
|
||||
next unless $tempFilename;
|
||||
next unless $upload->size > 0;
|
||||
if ($tempFilename =~ /([^\/\\]+)$/) { $tempFilename = $1; }
|
||||
my $type = $self->getFileExtension($tempFilename);
|
||||
if (isIn($type, qw(pl perl sh cgi php asp))) { # make us safe from malicious uploads
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue