Skip to content

Commit

Permalink
Fix primefaces#11990: 14.0.1 FileValidator remove POI dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed May 23, 2024
1 parent 5dac459 commit a7543c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
*/
package org.primefaces.validate;

import org.apache.poi.util.StringUtil;
import org.primefaces.component.fileupload.FileUpload;
import org.primefaces.context.PrimeApplicationContext;
import org.primefaces.model.file.NativeUploadedFile;
import org.primefaces.model.file.UploadedFile;
import org.primefaces.model.file.UploadedFiles;
import org.primefaces.util.FileUploadUtils;
import org.primefaces.util.LangUtils;
import org.primefaces.util.LocaleUtils;
import org.primefaces.util.MessageFactory;
import org.primefaces.virusscan.VirusException;
Expand Down Expand Up @@ -162,7 +162,7 @@ public Map<String, Object> getMetadata() {
metadata.put("data-p-sizelimit", sizeLimit);
}

if (!StringUtil.isBlank(allowTypes)) {
if (LangUtils.isNotBlank(allowTypes)) {
metadata.put("data-p-allowtypes", allowTypes);
}

Expand Down

0 comments on commit a7543c8

Please sign in to comment.