Commit a556ed59 authored by Peter Tönnies's avatar Peter Tönnies Committed by Peter Tönnies

typo fixed

parent 40e85b81
Pipeline #21224264 passed with stages
in 10 minutes and 52 seconds
......@@ -24,8 +24,8 @@ class MailboxXhr extends Control
public function attach()
{
// is filesize (10MB) and filetype allowed?
$attachementIsAllowed = $this->attach_allow($_FILES['etattach']['name'], $_FILES['etattach']['type']);
if ($attachementIsAllowed && isset($_FILES['etattach']['size']) && $_FILES['etattach']['size'] < 1310720) {
$attachmentIsAllowed = $this->attach_allow($_FILES['etattach']['name'], $_FILES['etattach']['type']);
if ($attachmentIsAllowed && isset($_FILES['etattach']['size']) && $_FILES['etattach']['size'] < 1310720) {
$new_filename = uniqid();
$ext = strtolower($_FILES['etattach']['name']);
......@@ -43,7 +43,7 @@ class MailboxXhr extends Control
move_uploaded_file($_FILES['etattach']['tmp_name'], 'data/mailattach/tmp/' . $new_filename);
$init = 'window.parent.mb_finishFile("' . $new_filename . '");';
} elseif (!$attachementIsAllowed) {
} elseif (!$attachmentIsAllowed) {
$init = 'window.parent.pulseInfo(\'' . $this->func->jsSafe($this->func->s('wrong_file')) . '\');window.parent.mb_removeLast();';
} else {
$init = 'window.parent.pulseInfo(\'' . $this->func->jsSafe($this->func->s('file_to_big')) . '\');window.parent.mb_removeLast();';
......
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