File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -452,6 +452,22 @@ suite('URI', () => {
452452 assert . equal ( strIn , strOut ) ;
453453 } ) ;
454454
455+ test ( 'Uri#parse can break path-component #45515' , function ( ) {
456+ this . skip ( ) ;
457+ // fails!!
458+ let strIn = 'https://firebasestorage.googleapis.com/v0/b/brewlangerie.appspot.com/o/products%2FzVNZkudXJyq8bPGTXUxx%2FBetterave-Sesame.jpg?alt=media&token=0b2310c4-3ea6-4207-bbde-9c3710ba0437' ;
459+ let uri1 = URI . parse ( strIn ) ;
460+ let strOut = uri1 . toString ( ) ;
461+ let uri2 = URI . parse ( strOut ) ;
462+
463+ assert . equal ( uri1 . scheme , uri2 . scheme ) ;
464+ assert . equal ( uri1 . authority , uri2 . authority ) ;
465+ assert . equal ( uri1 . path , uri2 . path ) ;
466+ assert . equal ( uri1 . query , uri2 . query ) ;
467+ assert . equal ( uri1 . fragment , uri2 . fragment ) ;
468+ assert . equal ( strIn , strOut ) ;
469+ } ) ;
470+
455471 test ( 'URI - (de)serialize' , function ( ) {
456472
457473 const values = [
You can’t perform that action at this time.
0 commit comments