Skip to content

Commit

Permalink
eslint: remove disable for security/detect-possible-timing-attacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Feb 27, 2024
1 parent 901a23d commit dfed440
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/ext.matomoanalytics.oouiform.ooui.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@
var hash = location.hash;
if ( hash.match( /^#mw-[\w-]+/ ) ) {
detectHash();
/*
* The next comment makes eslint ignore possible timing attacks when checking if the hash is an empty string
* as this is not something you need a constant-time comparison for
*/
// eslint-disable-next-line security/detect-possible-timing-attacks
} else if ( hash === '' ) {
switchMatomoAnalyticsTab( $( '[id*=mw-section-]' ).attr( 'id' ), true );
}
Expand Down

0 comments on commit dfed440

Please sign in to comment.