From 72ad36d0e28162eabdbf509a766c61812d64ca13 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 11 Dec 2023 20:12:06 +0700 Subject: [PATCH] Some reported bugfixes (#1200) * Some reported bugfixes * Update CHANGELOG.md --- CHANGELOG.md | 3 +++ info.php | 2 +- library/ajax/posts.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aba2d3988..59f387461 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,9 @@ - Use one GET variable for filelisting [\#1193](https://github.com/torrentpier/torrentpier/pull/1193) ([kovalensky](https://github.com/kovalensky)) - Refactored poll.php [\#1194](https://github.com/torrentpier/torrentpier/pull/1194) ([belomaxorka](https://github.com/belomaxorka)) - Removed useless global $lang; from info.php [\#1195](https://github.com/torrentpier/torrentpier/pull/1195) ([belomaxorka](https://github.com/belomaxorka)) +- Update file_list_v2.php [\#1196](https://github.com/torrentpier/torrentpier/pull/1196), [\#1197](https://github.com/torrentpier/torrentpier/pull/1197), [\#1199](https://github.com/torrentpier/torrentpier/pull/1199) ([kovalensky](https://github.com/kovalensky)) +- Small code re-format for scrape.php [\#1198](https://github.com/torrentpier/torrentpier/pull/1198) ([kovalensky](https://github.com/kovalensky)) +- Some reported bugfixes [\#1200](https://github.com/torrentpier/torrentpier/pull/1200) ([belomaxorka](https://github.com/belomaxorka)) - Updated deps [\#1177](https://github.com/torrentpier/torrentpier/pull/1177), [\#1178](https://github.com/torrentpier/torrentpier/pull/1178),[\#1183](https://github.com/torrentpier/torrentpier/pull/1183), [\#1184](https://github.com/torrentpier/torrentpier/pull/1184) ([belomaxorka](https://github.com/belomaxorka)) - New Crowdin updates [\#1179](https://github.com/torrentpier/torrentpier/pull/1179), [\#1182](https://github.com/torrentpier/torrentpier/pull/1182), [\#1191](https://github.com/torrentpier/torrentpier/pull/1191) ([Exileum](https://github.com/Exileum)) diff --git a/info.php b/info.php index 219dce4d0..484f02d00 100644 --- a/info.php +++ b/info.php @@ -17,7 +17,7 @@ $user->session_start(); $info = []; $htmlDir = LANG_DIR . 'html/'; -switch ((string)$_REQUEST['show']) { +switch ((string)$_REQUEST['show'] ?? 'not_found') { case 'advert': $info['title'] = $lang['ADVERT']; $info['src'] = 'advert.html'; diff --git a/library/ajax/posts.php b/library/ajax/posts.php index f00f2fd90..f943c0bd0 100644 --- a/library/ajax/posts.php +++ b/library/ajax/posts.php @@ -110,7 +110,7 @@ switch ($this->request['type']) { $message = htmlCHR($message, false, ENT_NOQUOTES); $this->response['message_html'] = bbcode2html($message); - $this->response['res_id'] = $this->request['res_id']; + $this->response['res_id'] = @$this->request['res_id']; break; case 'edit':