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

repair share file image bug (#4543)

This commit is contained in:
杨顺强
2020-04-22 20:46:19 +08:00
committed by GitHub
parent d32d14aa8c
commit e9dd31372e
2 changed files with 7 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ class FileContent extends React.Component {
let index2 = imagePath.indexOf('?');
imagePath = imagePath.substring(index + 5, index2);
// change image url
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;
}