SUPPORT-8841: rename
This commit is contained in:
parent
038d7b1288
commit
a34f46a707
1 changed files with 4 additions and 4 deletions
|
|
@ -99,10 +99,10 @@ public class FileScanService {
|
|||
|
||||
private void checkScanResult(String result) {
|
||||
for (String line : result.split("\n")) {
|
||||
String[] linePart = line.split(":");
|
||||
if (linePart.length > 1) {
|
||||
if (linePart[0].startsWith(passwordProtectedResultName)
|
||||
&& Integer.parseInt(linePart[1].trim()) > 0) {
|
||||
String[] lineParts = line.split(":");
|
||||
if (lineParts.length > 1) {
|
||||
if (lineParts[0].startsWith(passwordProtectedResultName)
|
||||
&& Integer.parseInt(lineParts[1].trim()) > 0) {
|
||||
throw new AvException("Detected password-protected file");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue