Skip to content

Commit

Permalink
Close userinfo loophole
Browse files Browse the repository at this point in the history
  • Loading branch information
proginosko committed Nov 12, 2022
1 parent e674c67 commit 49b5c7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ function getRegExpSites(sites, matchSubdomains) {
}
return {
block: (blocks.length > 0)
? "^" + (blockFiles ? "file:|" : "") + "(https?|file):\\/+(" + blocks.join("|") + ")"
? "^" + (blockFiles ? "file:|" : "") + "(https?|file):\\/+([\\w\\:]+@)?(" + blocks.join("|") + ")"
: (blockFiles ? "^file:" : ""),
allow: (allows.length > 0)
? "^" + (allowFiles ? "file:|" : "") + "(https?|file):\\/+(" + allows.join("|") + ")"
? "^" + (allowFiles ? "file:|" : "") + "(https?|file):\\/+([\\w\\:]+@)?(" + allows.join("|") + ")"
: (allowFiles ? "^file:" : ""),
refer: (refers.length > 0) ? "^(https?|file):\\/+(" + refers.join("|") + ")" : "",
refer: (refers.length > 0) ? "^(https?|file):\\/+([\\w\\:]+@)?(" + refers.join("|") + ")" : "",
keyword: (keywords.length > 0)
? U_WORD_BEGIN + "(" + keywords.join("|") + ")" + U_WORD_END
: ""
Expand Down

0 comments on commit 49b5c7e

Please sign in to comment.