[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] tiki-view_tracker.php : Generates error 500 when trackerId is invalid, ...

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68a55de62072c_2cd6d944578c@gitlab-sidekiq-low-urgency-cpu-bound-v2-69b9c7dd4d-v67df.mail>

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
e364e7cb by Alain Cisirika at 2025-08-20T05:24:46+00:00
[FIX] tiki-view_tracker.php : Generates error 500 when trackerId is invalid, empty or not specified in the url
---
* [FIX] tiki-view_tracker.php Generates error 500 when trackerId is invalid, empty or not specified in the url

See merge request tikiwiki/tiki!8242

- - - - -


1 changed file:

- tiki-view_tracker.php


Changes:

=====================================
tiki-view_tracker.php
=====================================
@@ -70,12 +70,12 @@ if (! empty($_REQUEST['itemId'])) {
 }
 $_REQUEST["itemId"] = 0;
 $smarty->assign('itemId', $_REQUEST["itemId"]);
-if (! isset($_REQUEST["trackerId"])) {
-    Feedback::errorAndDie(tra("No tracker indicated"), \Laminas\Http\Response::STATUS_CODE_400);
+if (empty($_REQUEST["trackerId"]) || ! filter_var($_REQUEST["trackerId"], FILTER_VALIDATE_INT)) {
+    Feedback::errorAndDie(tra("No tracker specified or tracker ID is invalid."), \Laminas\Http\Response::STATUS_CODE_400);
 }
 $trackerDefinition = Tracker_Definition::get($_REQUEST['trackerId']);
 if (! $trackerDefinition) {
-    Feedback::errorAndDie(tra("No tracker indicated"), \Laminas\Http\Response::STATUS_CODE_400);
+    Feedback::errorAndDie(tra("The specified tracker does not exist or may have been deleted."), \Laminas\Http\Response::STATUS_CODE_400);
 }
 
 $tracker_info = $trackerDefinition->getInformation();



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e364e7cbf63f9f4d94b8b2b0e940a69c022c03c3

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e364e7cbf63f9f4d94b8b2b0e940a69c022c03c3
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.