View Issue Details

IDProjectCategoryView StatusLast Update
0016940mantisbtnewspublic2014-03-03 14:24
Reportersyzop Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.2.16 
Target Version1.2.17Fixed in Version1.2.17 
Summary0016940: undefined function db_params() in core/news_api.php
Description

PHP Fatal error: Call to undefined function db_params() in /www/core/news_api.php on line 269

Presumably the:
$query .= " WHERE project_id=" . db_params();
should be:
$query .= " WHERE project_id=" . db_param();

Additional Information

Bug introduced in 1.2.16

TagsNo tags attached.

Relationships

related to 0016880 closeddregad CVE-2014-1609: SQL injection vulnerabilities 
has duplicate 0016946 closedatrol Main page does not show any news after upgrade 

Activities

dregad

dregad

2014-02-08 16:42

developer   ~0039352

Thanks for the bug report

AdamR

AdamR

2014-02-13 11:04

reporter   ~0039392

Confirming that this happened on my 1.2.16 too, also confirming that dropping the 's' in "db_params()" fixed it.

Related Changesets

MantisBT: master-1.2.x 05b3bb4d

2014-02-08 11:38

dregad


Details Diff
Fix 0016940: undefined function db_params() in news_api.php

Regression introduced by 7efe0175f0853e18ebfacedfd2374c4179028b3f
(fix for issue 0016880)
Affected Issues
0016880, 0016940
mod - core/news_api.php Diff File

MantisBT: master 7fef194b

2014-02-08 11:38

dregad


Details Diff
Fix 0016940: undefined function db_params() in news_api.php

Regression introduced by 7efe0175f0853e18ebfacedfd2374c4179028b3f
(fix for issue 0016880)
Affected Issues
0016880, 0016940
mod - core/news_api.php Diff File