mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
SimpleCommandMap: do not strip backslashes from unquoted command arguments
This commit is contained in:
parent
fa48100da5
commit
448f26cefc
@ -206,7 +206,7 @@ class SimpleCommandMap implements CommandMap{
|
|||||||
foreach($matches[0] as $k => $_){
|
foreach($matches[0] as $k => $_){
|
||||||
for($i = 1; $i <= 2; ++$i){
|
for($i = 1; $i <= 2; ++$i){
|
||||||
if($matches[$i][$k] !== ""){
|
if($matches[$i][$k] !== ""){
|
||||||
$args[$k] = stripslashes($matches[$i][$k]);
|
$args[$k] = $i === 1 ? stripslashes($matches[$i][$k]) : $matches[$i][$k];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user