1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00

Revert "repair code bug"

This commit is contained in:
Daniel Pan
2022-01-18 22:04:04 +08:00
committed by GitHub
parent d553fecdbe
commit 54004118c6
3 changed files with 3 additions and 5 deletions

View File

@@ -55,8 +55,7 @@ class FileContent extends React.Component {
let index2 = imagePath.indexOf('?');
imagePath = imagePath.substring(index + 5, index2);
// change image url
// the image path has been encoded when inserting the image
innerNode.data.src = serviceURL + '/view-image-via-share-link/?token=' + sharedToken + '&path=' + imagePath;
innerNode.data.src = serviceURL + '/view-image-via-share-link/?token=' + sharedToken + '&path=' + Utils.encodePath(imagePath);
}
return innerNode;
}