Commit d34daac3 authored by Medicean's avatar Medicean

(Fix:Database) fix shell decode undefined error

parent 143c97f5
...@@ -1687,7 +1687,7 @@ class PHP { ...@@ -1687,7 +1687,7 @@ class PHP {
break; break;
} }
} }
encoding = encoding != "" ? encoding : this.opt['encode']; encoding = encoding != "" ? encoding : this.opt.core.__opts__['encode'];
let text = Decodes.decode(buff, encoding); let text = Decodes.decode(buff, encoding);
_data[i] = antSword.noxss(text); _data[i] = antSword.noxss(text);
} }
...@@ -1749,7 +1749,7 @@ class PHP { ...@@ -1749,7 +1749,7 @@ class PHP {
break; break;
} }
} }
encoding = encoding != "" ? encoding : this.opt['encode']; encoding = encoding != "" ? encoding : this.opt.core.__opts__['encode'];
let text = Decodes.decode(buff, encoding); let text = Decodes.decode(buff, encoding);
_data[i] = antSword.noxss(text, false); _data[i] = antSword.noxss(text, false);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment