M3 Security Fixes for Pass 37
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Modules\M3\Console;
|
||||
|
||||
use App;
|
||||
use Ayeo\Barcode;
|
||||
use Cache;
|
||||
use Config;
|
||||
@@ -54,7 +53,7 @@ class GenerateGS1Cmd extends Command
|
||||
|
||||
// Get the Calling User
|
||||
$userId = $this->argument('user');
|
||||
$sHUSER = isset($userId) ? $userId : (m3_user() !== '' ? Str::upper(trim(m3_user())) : 'TWOSHIP');
|
||||
$sHUSER = $userId ?? (m3_user() !== '' ? Str::upper(trim(m3_user())) : 'TWOSHIP');
|
||||
$this->info('User: ' . $sHUSER);
|
||||
|
||||
// Get Manifest Array
|
||||
@@ -223,7 +222,6 @@ class GenerateGS1Cmd extends Command
|
||||
}
|
||||
|
||||
$html .= '</body> </html>';
|
||||
// App::call('App\Http\Controllers\utilitiesContoller@generateGS128');
|
||||
|
||||
ob_start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user