Some important fixes

Some important fixes
This commit is contained in:
novgorodschi catalin
2026-08-05 10:21:53 +03:00
parent b2dec1d942
commit b21f60c2b1
6 changed files with 190 additions and 45 deletions
@@ -2208,6 +2208,11 @@ trait DatabaseVillageQueries {
}
function getCropProdstarv($wref, $use_cache = true) {
// Identificatorii intra in SQL fara ghilimele, iar
// mysqli_real_escape_string nu protejeaza contextul numeric:
// "5 OR 1=1" ar trece neschimbat. Conversia la intreg il opreste.
$wref = (int) $wref;
global $bid4, $bid8, $bid9, $technology;
// first of all, check if we should be using cache and whether the field