projects
/
Pman.MTrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cafb1e4
)
use escape
author
Alan
<alan@roojs.com>
Wed, 28 Jun 2023 09:06:49 +0000
(17:06 +0800)
committer
Alan
<alan@roojs.com>
Wed, 28 Jun 2023 09:06:49 +0000
(17:06 +0800)
DataObjects/Mtrack_change.php
patch
|
blob
|
history
diff --git
a/DataObjects/Mtrack_change.php
b/DataObjects/Mtrack_change.php
index
3d9dbb4
..
3e63d62
100644
(file)
--- a/
DataObjects/Mtrack_change.php
+++ b/
DataObjects/Mtrack_change.php
@@
-766,13
+766,13
@@
class Pman_MTrack_DataObjects_Mtrack_change extends DB_DataObject
$res = $tg->factory('SendMessage',array(
'chat_id' => 35721679,
'parse_mode' => 'MarkdownV2',
$res = $tg->factory('SendMessage',array(
'chat_id' => 35721679,
'parse_mode' => 'MarkdownV2',
- 'text' => "/ticket@{$this->onid} *".
htmlspecialchars
($t->summary) . "*\n\n".
- "{$this->cgtype} by
{$this->person()->name} \n\n" . htmlspecialchars
(implode("\n", $str))
+ 'text' => "/ticket@{$this->onid} *".
$tg->escape
($t->summary) . "*\n\n".
+ "{$this->cgtype} by
". $tg->escape($this->person()->name) . "\n\n" . $tg->escape
(implode("\n", $str))
))->send();
))->send();
- print_R($res);exit;
+
}
}