Skip to content

Commit

Permalink
Allow for a Windows credentials to not have an @.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Aug 14, 2024
1 parent 1dbb643 commit d201908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helpers/wmi_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ function wmi_command(string $ip = '', object $credentials = null, string $comman
if (php_uname('s') == 'Windows NT') {
$temp = explode('@', $credentials->credentials->username);
$username = $temp[0];
$domain = $temp[1];
$domain = @$temp[1];
if ($domain != '') {
$domain .= '\\';
}
Expand Down

0 comments on commit d201908

Please sign in to comment.