mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 15:22:35 -05:00
Cosmetic: Fix href of room links in /whois
This commit is contained in:
@@ -445,6 +445,10 @@ var Tools = {
|
||||
})((window.Config && Config.whitelist) ? Config.whitelist : []);
|
||||
return {
|
||||
isWhitelisted: function(uri) {
|
||||
if ((uri[0] === '/') && (uri[1] !== '/')) {
|
||||
// domain-relative URIs are safe
|
||||
return true;
|
||||
}
|
||||
for (var i = 0; i < patterns.length; ++i) {
|
||||
if (patterns[i].test(uri)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user