mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Fixed escaping values in NBT parser
This commit is contained in:
parent
534b988a1c
commit
0ce343d8ca
@ -335,7 +335,7 @@ class NBT{
|
|||||||
throw new \Exception("Syntax error: invalid quote at offset $offset");
|
throw new \Exception("Syntax error: invalid quote at offset $offset");
|
||||||
}
|
}
|
||||||
}elseif($c === "\\"){
|
}elseif($c === "\\"){
|
||||||
$value .= "\\" . isset($data{$offset + 1}) ? $data{$offset + 1} : "";
|
$value .= isset($data{$offset + 1}) ? $data{$offset + 1} : "";
|
||||||
++$offset;
|
++$offset;
|
||||||
}elseif($c === "{" and !$inQuotes){
|
}elseif($c === "{" and !$inQuotes){
|
||||||
if($value !== ""){
|
if($value !== ""){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user