X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=43f4681df336e226c346f559f22bbf5ba66157d5;hb=28e2eab7aee3ab5dac11fcc62be595b9a1c2df8b;hp=607d0fe7a394c237b5ff8b179191fcd5dcc001bc;hpb=d15023fe4bbc404d71ad9deeccfb066c70db9ee5;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index 607d0fe7a3..43f4681df3 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -67,14 +67,14 @@ function wall_attach_post(App $a) { System::jsonExit(['error' => DI::l10n()->t('Permission denied.')]); } notice(DI::l10n()->t('Permission denied.') . EOL ); - exit(); + System::exit(); } if (empty($_FILES['userfile'])) { if ($r_json) { System::jsonExit(['error' => DI::l10n()->t('Invalid request.')]); } - exit(); + System::exit(); } $src = $_FILES['userfile']['tmp_name']; @@ -97,7 +97,7 @@ function wall_attach_post(App $a) { } else { notice($msg); } - exit(); + System::exit(); } if ($maxfilesize && $filesize > $maxfilesize) { @@ -108,7 +108,7 @@ function wall_attach_post(App $a) { } else { echo $msg . EOL; } - exit(); + System::exit(); } $newid = Attach::storeFile($src, $page_owner_uid, $filename, '<' . $page_owner_cid . '>'); @@ -122,7 +122,7 @@ function wall_attach_post(App $a) { } else { echo $msg . EOL; } - exit(); + System::exit(); } if ($r_json) { @@ -132,7 +132,6 @@ function wall_attach_post(App $a) { $lf = "\n"; echo $lf . $lf . '[attachment]' . $newid . '[/attachment]' . $lf; - - exit(); + System::exit(); // NOTREACHED }