Skip to content

Commit

Permalink
fix: directory with phar host prefix issue and partial revert of prev…
Browse files Browse the repository at this point in the history
…iuos commit

Closes 4
  • Loading branch information
Marco Cesarato committed Mar 12, 2020
1 parent 8ddcc85 commit 1de045a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# AMWSCAN - PHP Antimalware Scanner

**Version:** 0.5.0.70 beta
**Version:** 0.5.0.71 beta

**Github:** https://github.com/marcocesarato/PHP-Antimalware-Scanner

Expand Down
Binary file modified dist/scanner
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.0.70
0.5.0.71
4 changes: 2 additions & 2 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Application
*
* @var string
*/
public static $VERSION = '0.5.0.70';
public static $VERSION = '0.5.0.71';

/**
* Root path.
Expand Down Expand Up @@ -1081,6 +1081,6 @@ private function convertToBytes($from)
*/
public static function currentDirectory()
{
return preg_replace('/^phar:\/\//i', '', __DIR__);
return dirname(preg_replace('/^phar:\/\//i', '', __DIR__), 1);
}
}
16 changes: 8 additions & 8 deletions src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace marcocesarato\amwscan;

include './Argument.php';
include './Argv.php';
include './Console.php';
include './CSV.php';
include './Definitions.php';
include './Flag.php';
include './Deobfuscator.php';
include './Application.php';
include 'Argument.php';
include 'Argv.php';
include 'Console.php';
include 'CSV.php';
include 'Definitions.php';
include 'Flag.php';
include 'Deobfuscator.php';
include 'Application.php';

$isCLI = (php_sapi_name() === 'cli');
if (!$isCLI) {
Expand Down

0 comments on commit 1de045a

Please sign in to comment.