Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit c524cd3

Browse files
committed
PDFJS : base64 encode the filename, otherwise accents are not working in IE.
1 parent 76892b8 commit c524cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/editor.pdfjs/class.PDFJSViewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Class.create("PDFJSViewer", AbstractEditor, {
4949

5050
// Get the direct PDF file link valid for this session.
5151
var fileName = nodeOrNodes.getPath();
52-
var pdfurl = encodeURIComponent(url+'/'+ajxpBootstrap.parameters.get('ajxpServerAccess')+'&action=get_content&file='+fileName);
52+
var pdfurl = encodeURIComponent(url+'/'+ajxpBootstrap.parameters.get('ajxpServerAccess')+'&action=get_content&file=base64encoded:' + base64_encode(fileName));
5353

5454
// Hide the Pydio action bar.
5555
this.element.down('.editor_action_bar').setStyle({display:'none'});

0 commit comments

Comments
 (0)