mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-06 08:11:12 -05:00
Vulnerability Check
Import customers Vulnerability Check
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
echo ' - ' . substr(sprintf("%o",fileperms($importcustomers)),-4) . ' | ' . '<font color="red"> Not Readable ✗ </font>';
|
||||
}
|
||||
clearstatcache();
|
||||
if (is_writable($importcustomers) && substr(decoct(fileperms($importcustomers)), -4) >= 660 ) {
|
||||
if (is_writable($importcustomers) && substr(decoct(fileperms($importcustomers)), -4) > 660 ) {
|
||||
echo ' | <font color="red">Vulnerable ✗</font>';
|
||||
} else {
|
||||
echo ' | <font color="green">Security Check Passed ✓ </font>';
|
||||
|
||||
Reference in New Issue
Block a user