File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,9 @@ export default class RequestHandler {
332332 }
333333
334334 async vaultGet ( req : express . Request , res : express . Response ) : Promise < void > {
335- const path = req . path . slice ( req . path . indexOf ( "/" , 1 ) + 1 ) ;
335+ const path = decodeURIComponent (
336+ req . path . slice ( req . path . indexOf ( "/" , 1 ) + 1 )
337+ ) ;
336338
337339 return this . _vaultGet ( path , req , res ) ;
338340 }
@@ -1060,7 +1062,9 @@ export default class RequestHandler {
10601062 }
10611063
10621064 async openPost ( req : express . Request , res : express . Response ) : Promise < void > {
1063- const path = req . path . slice ( req . path . indexOf ( "/" , 1 ) + 1 ) ;
1065+ const path = decodeURIComponent (
1066+ req . path . slice ( req . path . indexOf ( "/" , 1 ) + 1 )
1067+ ) ;
10641068
10651069 const query = queryString . parseUrl ( req . originalUrl , {
10661070 parseBooleans : true ,
You can’t perform that action at this time.
0 commit comments