File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -4261,19 +4261,18 @@ FilterContainer.parseRedirectRequestValue = function(modifier) {
4261
4261
} ;
4262
4262
4263
4263
FilterContainer . compareRedirectRequests = function ( a , b ) {
4264
- const abits = a . bits , bbits = b . bits ;
4264
+ const { token : atok , priority : aint , bits : abits } =
4265
+ FilterContainer . parseRedirectRequestValue ( a . modifier ) ;
4266
+ if ( µb . redirectEngine . hasToken ( atok ) === false ) { return - 1 ; }
4267
+ const { token : btok , priority : bint , bits : bbits } =
4268
+ FilterContainer . parseRedirectRequestValue ( b . modifier ) ;
4269
+ if ( µb . redirectEngine . hasToken ( btok ) === false ) { return 1 ; }
4265
4270
if ( abits !== bbits ) {
4266
4271
if ( ( abits & Important ) !== 0 ) { return 1 ; }
4267
4272
if ( ( bbits & Important ) !== 0 ) { return - 1 ; }
4268
4273
if ( ( abits & AllowAction ) !== 0 ) { return - 1 ; }
4269
4274
if ( ( bbits & AllowAction ) !== 0 ) { return 1 ; }
4270
4275
}
4271
- const { token : atok , priority : aint } =
4272
- FilterContainer . parseRedirectRequestValue ( a . modifier ) ;
4273
- if ( µb . redirectEngine . hasToken ( atok ) === false ) { return - 1 ; }
4274
- const { token : btok , priority : bint } =
4275
- FilterContainer . parseRedirectRequestValue ( b . modifier ) ;
4276
- if ( µb . redirectEngine . hasToken ( btok ) === false ) { return 1 ; }
4277
4276
return aint - bint ;
4278
4277
} ;
4279
4278
You can’t perform that action at this time.
0 commit comments