Merge pull request #4507 from APriestman/4681_dontStartRelativePathsWithSlash

4681 Remove leading slash and normalize the rest
This commit is contained in:
Richard Cordovano 2019-02-12 10:18:49 -05:00 committed by GitHub
commit c9e557a241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -516,8 +516,7 @@ class MSOfficeEmbeddedContentExtractor {
* @return * @return
*/ */
private String getFileRelativePath(String fileName) { private String getFileRelativePath(String fileName) {
// Used explicit FWD slashes to maintain DB consistency across operating systems. return Paths.get(moduleDirRelative, this.parentFileName, fileName).toString();
return "/" + moduleDirRelative + "/" + this.parentFileName + "/" + fileName; //NON-NLS
} }
/** /**