Skip to content

Commit 70ab85d

Browse files
committed
Fix url format #24
1 parent 9339d22 commit 70ab85d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<description>
88
<![CDATA[Files sharing use file stored path. Now you cau use nextcloud as your CDN origin.
99
What you need to do is just share your files, then click Open Sharing Path to access from files dropdown actions menu. ]]></description>
10-
<version>0.2.4</version>
10+
<version>0.2.5</version>
1111
<licence>agpl</licence>
1212
<author mail="[email protected]">Rookie0</author>
1313
<namespace>SharingPath</namespace>

js/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ $(document).ready(function () {
1414
// return;
1515
// }
1616

17-
let path = OC.getProtocol() + '://' + OC.getHost() + OC.generateUrl('/apps/sharingpath/' +
18-
OC.getCurrentUser().uid + (context.dir === '/' ? '' : context.dir) + '/' + filename);
17+
let path = encodeURI(OC.getProtocol() + '://' + OC.getHost() + OC.generateUrl('/apps/sharingpath/' +
18+
OC.getCurrentUser().uid + (context.dir === '/' ? '' : context.dir) + '/' + filename));
1919

2020
let dummyPath = document.createElement('textarea');
2121
dummyPath.value = path;

0 commit comments

Comments
 (0)