This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,9 @@ app.filter("round", function () {
198
198
} ;
199
199
} ) ;
200
200
201
+ app . filter ( "escape" , function ( ) {
202
+ return window . encodeURIComponent ;
203
+ } ) ;
201
204
202
205
app . filter ( "ratioRound" , function ( ) {
203
206
return function ( n ) {
Original file line number Diff line number Diff line change 7
7
8
8
< div class ="content ">
9
9
< div class ="header ">
10
- < a ng-if ="!isdownloading(node.Name) " ng-href ="download/{{ node.$path }} "> {{ node.Name }}</ a >
10
+ < a ng-if ="!isdownloading(node.Name) " ng-href ="download/{{ node.$path | escape }} "> {{ node.Name }}</ a >
11
11
< span ng-if ="isfile() && isdownloading(node.Name) "> {{ node.Name }}</ span >
12
12
< span ng-if ="!isdownloading(node.Name) " class ="controls ">
13
13
< i ng-show ="!confirm " ng-click ="preremove() " class ="red trash icon "> </ i >
22
22
< audio ng-if ="audioPreview " controls >
23
23
< source ng-src ="{{ showPreview ? ('download/'+node.$path) : '' }} ">
24
24
</ audio >
25
- < img ng-if ="imagePreview " ng-src ="{{ showPreview ? ('download/'+node.$path) : '' }} ">
25
+ < img ng-if ="imagePreview " ng-src ="{{ showPreview ? ('download/'+( node.$path | escape) ) : '' }} ">
26
26
< video controls autoplay ng-if ="videoPreview ">
27
- < source ng-src ="{{ showPreview ? ('download/'+node.$path) : '' }} ">
27
+ < source ng-src ="{{ showPreview ? ('download/'+( node.$path|escape) ) : '' }} ">
28
28
</ video >
29
29
</ div >
30
30
< div class ="list " ng-if ="isdir() && !closed() ">
You can’t perform that action at this time.
0 commit comments