File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,6 @@ function refFromPath(
74
74
} else {
75
75
// ref is a Reference
76
76
if ( path !== undefined ) {
77
- if ( path . includes ( '..' ) ) {
78
- throw invalidArgument ( '`path` param cannot contain ".."' ) ;
79
- }
80
77
return _getChild ( ref , path ) ;
81
78
} else {
82
79
return ref ;
Original file line number Diff line number Diff line change @@ -372,12 +372,6 @@ GOOG4-RSA-SHA256`
372
372
const newRef = ref ( reference ) ;
373
373
expect ( newRef . toString ( ) ) . to . equal ( 'gs://bucket/object' ) ;
374
374
} ) ;
375
- it ( 'Throws calling ref(reference, path) if path contains ".."' , ( ) => {
376
- const error = testShared . assertThrows ( ( ) => {
377
- ref ( reference , `../child/path` ) ;
378
- } , 'storage/invalid-argument' ) ;
379
- expect ( error . message ) . to . match ( / " \. \. " / ) ;
380
- } ) ;
381
375
} ) ;
382
376
383
377
describe ( 'Deletion' , ( ) => {
You can’t perform that action at this time.
0 commit comments