mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Some security enhancements (#1505)
* Some security enhancements * Update CHANGELOG.md
This commit is contained in:
parent
0663f55e54
commit
411a756085
4 changed files with 6 additions and 4 deletions
|
@ -76,9 +76,10 @@ switch ($this->request['type']) {
|
|||
$message = "[quote=\"" . $quote_username . "\"][qpost=" . $post['post_id'] . "]" . $post['post_text'] . "[/quote]\r";
|
||||
|
||||
// hide user passkey
|
||||
$message = preg_replace('#(?<=\?uk=)[a-zA-Z0-9](?=&)#', 'passkey', $message);
|
||||
$message = preg_replace('#(?<=[\?&;]' . $bb_cfg['passkey_key'] . '=)[a-zA-Z0-9]#', 'passkey', $message);
|
||||
// hide sid
|
||||
$message = preg_replace('#(?<=[\?&;]sid=)[a-zA-Z0-9]#', 'sid', $message);
|
||||
|
||||
$message = $wordCensor->censorString($message);
|
||||
|
||||
if ($post['post_id'] == $post['topic_first_post_id']) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue