Skip to content

Commit fd81a6c

Browse files
committed
ShareInto: Attachment drop trailing slash #2651
1 parent 9aaca77 commit fd81a6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/net/gsantner/markor/frontend/AttachLinkOrFileDialog.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ private static String setupFileAttachment(
292292
}
293293
}
294294

295+
// Remove trailing slashes if any
296+
path = path.replaceAll("/+$", "");
297+
295298
return path;
296299
}
297300

0 commit comments

Comments
 (0)