mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-15 02:49:28 -05:00
Fix CM Exploit (#62)
This commit is contained in:
+4
-1
@@ -4115,7 +4115,7 @@ function init_io() {
|
||||
}
|
||||
if (method == "cm") {
|
||||
var add = 1;
|
||||
var len = data.message.length;
|
||||
var len = JSON.stringify(data.message).length;
|
||||
var mult = 1;
|
||||
if (len > 100) {
|
||||
add = 2;
|
||||
@@ -4126,6 +4126,9 @@ function init_io() {
|
||||
} else if (len > 50000) {
|
||||
add = 20;
|
||||
}
|
||||
if (!Array.isArray(data.to)) {
|
||||
data.to = [data.to];
|
||||
}
|
||||
// console.log("add: "+add+"len: "+len);
|
||||
if (data.to.length > 1) {
|
||||
mult = 0.8;
|
||||
|
||||
Reference in New Issue
Block a user