Skip to content

Commit

Permalink
Merge pull request #1383 from rebane2001/fix-linkvertise
Browse files Browse the repository at this point in the history
Fix linkvertise r param bypass
  • Loading branch information
undeadjess authored Apr 1, 2024
2 parents c18666f + 4d981f8 commit ae5a2b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bypasses/linkvertise.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class Linkvertise extends BypassDefinition {
}

execute () {
if (window.location.href.toString().includes('?r=')) {
if (/[\?&]r=/.test(window.location.href.toString())) {
const urlParams = new URLSearchParams(window.location.search)
const r = urlParams.get('r')
this.helpers.safelyNavigate(atob(decodeURIComponent(r)))
Expand Down

0 comments on commit ae5a2b7

Please sign in to comment.