Fix issues with channel ID when using a password

This commit is contained in:
yflory committed 2018-04-26 15:10:31 +02:00
1 parent 1879c1829c
commit b26ae67df5
18 files changed
+72 -53

No files matched your search

+1
View File
@@ -459,6 +459,7 @@ define([
ckeditor: editor,
body: $('body'),
onUploaded: function (ev, data) {
// PASSWORD_FILES
var parsed = Hash.parsePadUrl(data.url);
var hexFileName = Util.base64ToHex(parsed.hashData.channel);
var src = '/blob/' + hexFileName.slice(0,2) + '/' + hexFileName;