Skip to content

Commit 718b384

Browse files
committed
0.12
1 parent fcbe180 commit 718b384

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

magento_appsec_file_check.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
// EXEC
6060
//
61-
echo '*** Magento security file check ***'. "\n";
61+
echo '*** '. "\033[1;32m". 'Magento security file check'. "\033[0m". ' ***'. "\n";
6262
$_count=1;
6363

6464
foreach ($_securityNotices as $_name => $_securityNotice)
@@ -103,7 +103,7 @@ function doExec($_securityNotice,$_name)
103103

104104
foreach ($_output as $_line)
105105
{
106-
$_search=$_search.'['. $_name. '] '. $_searchQuery. ' found in '. "\033[31m". str_replace($_securityNotice['magentopath'],' ', $_line). "\033[0m\n";
106+
$_search=$_search.'['. "\033[1;32m". $_name. "\033[0m". '] '. $_searchQuery. ' found in '. "\033[1;31m". str_replace($_securityNotice['magentopath'],' ', $_line). "\033[0m\n";
107107
}
108108

109109
} else {
@@ -112,7 +112,7 @@ function doExec($_securityNotice,$_name)
112112

113113
}
114114

115-
$_text=$_text.$_count. ' affected files : '. "\n". $_search. "\n";
115+
$_text=$_text.($_count > 0 ? "\033[1;31m". $_count. "\033[0m". ' affected files : ' : $_count. 'affected files.'). "\n". $_search. "\n";
116116
}
117117

118118
return $_text;

0 commit comments

Comments
 (0)