mirror of
https://github.com/twisterarmy/twister-phpbot.git
synced 2025-09-02 17:21:59 +00:00
fix escaping of % in windows
This commit is contained in:
parent
5052fb277c
commit
ab95c86c0a
@ -97,7 +97,7 @@ class TwisterPost
|
||||
}
|
||||
|
||||
$k = $this->maxId + 1;
|
||||
$text = '"' . str_replace('"', '\\"', $text) . '"';
|
||||
$text = escapeshellarg($text);
|
||||
$result = $this->runRpcCommand('newpostmsg', "{$this->user} $k $text");
|
||||
if (isset($result->code) && $result->code < 0) {
|
||||
$this->maxId = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user