Commit df13dd16 authored by Matthieu Le Corre's avatar Matthieu Le Corre
Browse files

Fix special chars


Signed-off-by: Matthieu Le Corre's avatarMatthieu Le Corre <matthieu.lecorre@univ-nantes.fr>
parent 6da7dc43
# 1.1.2 NO_RELEASED_YET
### Fixed
- Image not loading when using MD produced by the new text editor
[#33](https://gitlab.univ-nantes.fr/uncloud/files_readmemd/issues/33#)
- Special characters in sharename (?) results in not found
[#31](https://gitlab.univ-nantes.fr/uncloud/files_readmemd/issues/32#)
### Added
- Compatibilité with NC 17
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "files_readmemd",
"version": "1.1.0",
"version": "1.1.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
......@@ -333,10 +333,17 @@ OCA.ReadmeMD.App = {
if (this.mode == 'public') {
var token = $('#sharingToken').val()
var dir = OCA.Sharing.PublicApp.fileList._currentDirectory ;
var URL = OC.generateUrl('/s/{token}/download?path={path}&files={file}', {token: token, path: dir, file: zone.filename});
var URL = OC.generateUrl('/s/{token}/download?path={path}&files={file}',
{ token: token,
path: escape(dir),
file: escape(zone.filename)
}
);
}else{
var dir = OCA.Files.App.fileList._currentDirectory ;
var URL = OC.linkToRemoteBase('files'+ dir + '/' + zone.filename)
console.log(dir)
console.log(escape(dir) )
var URL = OC.linkToRemoteBase('files'+ escape(dir) + '/' + escape(zone.filename))
} ;
//load header file via remote call apps
$.get(URL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment