We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1a2c5a commit 9387443Copy full SHA for 9387443
src/main/java/org/jabref/gui/externalfiles/ImportHandler.java
@@ -501,9 +501,9 @@ private List<BibEntry> handlePdfUrl(String pdfUrl) throws IOException {
501
502
private String deriveFileNameFromUrl(String url) {
503
String fileName = url.substring(url.lastIndexOf('/') + 1);
504
- if (fileName == null || fileName.isBlank()) {
+ if (fileName.isBlank()) {
505
fileName = "downloaded.pdf";
506
}
507
- return fileName;
+ return FileUtil.getValidFileName(fileName);
508
509
0 commit comments